nerdexam
CompTIA

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.

Security

Question

Which of the following configuration files does sudo read when determining if a user is permitted to run applications with root privileges?

Options

  • A/etc/groups
  • B/etc/passwd
  • C/etc/sudoers
  • D/etc/sudo.conf

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    94% (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.

A/etc/groups

`/etc/groups` defines user groups but does not directly control `sudo` access permissions.

B/etc/passwd

`/etc/passwd` contains user account information, but not `sudo` specific authorization rules.

C/etc/sudoersCorrect

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.

D/etc/sudo.conf

`/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

#sudo#privilege escalation#configuration files#user permissions

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice