LFCS · 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. The sudoers file defines which users can execute specific commands with superuser privileges.
Question
Options
- A/etc/audit.conf
- B/etc/shadow
- C/etc/sudo.conf
- D/etc/sudoers
How the community answered
(53 responses)- A6% (3)
- B2% (1)
- C4% (2)
- D89% (47)
Why each option
The `sudoers` file defines which users can execute specific commands with superuser privileges.
`/etc/audit.conf` is related to system auditing, not `sudo` permissions.
`/etc/shadow` stores encrypted user passwords and related account information.
`/etc/sudo.conf` is a global configuration file for `sudo` to set plugin options, but `/etc/sudoers` contains the actual user permission rules.
The `/etc/sudoers` file is the primary configuration file for the `sudo` program. It specifies which users or groups are allowed to run what commands as which users and from what terminals, optionally without a password.
Concept tested: Sudoer configuration (sudoers file)
Source: https://man7.org/linux/man-pages/man5/sudoers.5.html
Topics
Community Discussion
No community discussion yet for this question.