LX0-104 · Question #508
Which of the following configurations file does sudo read when determining if a user is permitted to run applications with root privileges?
The correct answer is D. /etc/sudoers. sudo determines user permissions for running commands as root by consulting the /etc/sudoers file, which defines who can run what commands on which hosts.
Question
Options
- A/etc/audit.conf
- B/etc/shadow
- C/etc/sudo.conf
- D/etc/sudoers
How the community answered
(36 responses)- B8% (3)
- C3% (1)
- D89% (32)
Why each option
`sudo` determines user permissions for running commands as root by consulting the `/etc/sudoers` file, which defines who can run what commands on which hosts.
`/etc/audit.conf` is a configuration file for the Linux Audit system, used for security auditing, not `sudo` permissions.
`/etc/shadow` stores encrypted user passwords and password aging information, not `sudo` access rules.
`/etc/sudo.conf` is a configuration file for the `sudo` frontend itself, used to specify plugin paths or debug settings, but it does not contain user-specific permission rules.
The `/etc/sudoers` file is the primary configuration file for the `sudo` command, specifying which users or groups are allowed to execute commands as another user (typically root) and with what restrictions. This file must be edited using the `visudo` command to ensure correct syntax and prevent system lockout.
Concept tested: sudo configuration file
Source: https://linux.die.net/man/5/sudoers
Topics
Community Discussion
No community discussion yet for this question.