LX0-104 · Question #233
Which of the following configuration files does sudo read when determining if a user is permitted to run applications with root privileges?
The correct answer is C. /etc/sudoers. The sudo command determines user privileges for running commands as root or other users by consulting the rules defined in the /etc/sudoers file.
Question
Options
- A/etc/groups
- B/etc/passwd
- C/etc/sudoers
- D/etc/sudo.conf
How the community answered
(35 responses)- A3% (1)
- B3% (1)
- C94% (33)
Why each option
The `sudo` command determines user privileges for running commands as root or other users by consulting the rules defined in the `/etc/sudoers` file.
`/etc/groups` defines user groups but does not directly control `sudo` access permissions.
`/etc/passwd` contains user account information, but not `sudo` specific authorization rules.
The `/etc/sudoers` file is the central configuration file where administrators define which users or groups are granted `sudo` privileges, what commands they can run, and under what conditions, ensuring secure access control.
`/etc/sudo.conf` is used for general `sudo` settings, like plugin configuration, not for user-specific privilege rules.
Concept tested: Sudo configuration file
Source: https://linux.die.net/man/5/sudoers
Topics
Community Discussion
No community discussion yet for this question.