nerdexam
CompTIA

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.

Administrative Tasks

Question

Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?

Options

  • A/etc/security.conf
  • B/etc/supasswd
  • C/etc/sudoers
  • D/etc/sudo.conf

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    89% (34)
  • D
    3% (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.

A/etc/security.conf

`/etc/security.conf` is not the standard configuration file used by `sudo` to determine user permissions for running commands with root privileges.

B/etc/supasswd

`/etc/supasswd` is not a recognized configuration file for `sudo` permissions.

C/etc/sudoersCorrect

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.

D/etc/sudo.conf

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

#sudo#sudoers file#privilege escalation

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice