Which file is primarily edited to configure sudo privileges when using visudo?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which file is primarily edited to configure sudo privileges when using visudo?

Explanation:
When configuring sudo privileges using visudo, you edit the file that defines who can run commands as root or another user. That primary file is /etc/sudoers, and visudo opens it to perform a syntax check before saving. You can also augment rules by placing additional files in /etc/sudoers.d, but these are included by the main sudoers file rather than being the main place to configure privileges. The other paths listed aren’t standard locations for sudo privilege configuration.

When configuring sudo privileges using visudo, you edit the file that defines who can run commands as root or another user. That primary file is /etc/sudoers, and visudo opens it to perform a syntax check before saving. You can also augment rules by placing additional files in /etc/sudoers.d, but these are included by the main sudoers file rather than being the main place to configure privileges. The other paths listed aren’t standard locations for sudo privilege configuration.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy