nerdexam
Linux_Foundation

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.

Submitted by tyler.j· Apr 18, 2026User and Group Management

Question

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

Options

  • A/etc/audit.conf
  • B/etc/shadow
  • C/etc/sudo.conf
  • D/etc/sudoers

How the community answered

(53 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    4% (2)
  • D
    89% (47)

Why each option

The `sudoers` file defines which users can execute specific commands with superuser privileges.

A/etc/audit.conf

`/etc/audit.conf` is related to system auditing, not `sudo` permissions.

B/etc/shadow

`/etc/shadow` stores encrypted user passwords and related account information.

C/etc/sudo.conf

`/etc/sudo.conf` is a global configuration file for `sudo` to set plugin options, but `/etc/sudoers` contains the actual user permission rules.

D/etc/sudoersCorrect

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

#sudo#privilege escalation#configuration files#user permissions

Community Discussion

No community discussion yet for this question.

Full LFCS Practice