102-500 · Question #52
Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?
The correct answer is D. /etc/sudoers. /etc/sudoers is the configuration file that sudo reads to determine which users and groups are allowed to run commands with elevated (root) privileges, and under what conditions. You can safely edit it using the visudo command, which validates syntax before saving…
Question
Options
- A/etc/audit.conf
- B/etc/shadow
- C/etc/sudo.conf
- D/etc/sudoers
How the community answered
(66 responses)- A15% (10)
- B5% (3)
- C8% (5)
- D73% (48)
Explanation
/etc/sudoers is the configuration file that sudo reads to determine which users and groups are allowed to run commands with elevated (root) privileges, and under what conditions. You can safely edit it using the visudo command, which validates syntax before saving.
- /etc/audit.conf configures the Linux Audit daemon (
auditd), which logs system events - it has no role in authorization decisions. - /etc/shadow stores hashed user passwords and account expiry information, not privilege rules.
- /etc/sudo.conf is a real file, but it configures the
sudofront-end itself (plugins, paths, debug settings) - it does not define who is permitted to use sudo.
Memory tip: Think of the file name as "sudo's rules" - sudo + ers = the people (and rules) that sudo cares about. If you ever need to remember how to edit it safely, remember visudo ("vi for sudo") validates the file before writing, preventing lockouts.
Topics
Community Discussion
No community discussion yet for this question.