LX0-104 · Question #690
Which configuration file 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 references the /etc/sudoers configuration file to determine which users are authorized to execute commands with elevated privileges.
Question
Options
- A/etc/security.conf
- B/etc/supasswd
- C/etc/sudoers
- D/etc/sudo.conf
How the community answered
(38 responses)- A3% (1)
- B5% (2)
- C89% (34)
- D3% (1)
Why each option
The `sudo` command references the `/etc/sudoers` configuration file to determine which users are authorized to execute commands with elevated privileges.
`/etc/security.conf` is not the standard configuration file used by `sudo` to determine user permissions for running commands with root privileges.
`/etc/supasswd` is not a recognized configuration file for `sudo` permissions.
The `/etc/sudoers` file is the definitive configuration file for the `sudo` command, containing the rules that specify which users or groups can execute which commands as another user (typically root), under what conditions, and whether a password is required.
`/etc/sudo.conf` is a global configuration file for `sudo` that controls aspects like plugin loading and debug settings, but it does not contain the specific user privilege rules found in `/etc/sudoers`.
Concept tested: Sudo user privilege configuration file
Source: https://man7.org/linux/man-pages/man5/sudoers.5.html
Topics
Community Discussion
No community discussion yet for this question.