nerdexam
CompTIA

XK0-005 · Question #816

A Linux systems administrator is resolving a privileged access issue for users who are members of an admin group. Which of the following configuration files should the administrator update so the…

The correct answer is A. /etc/sudoers. The /etc/sudoers file controls which users and groups can execute commands with elevated (root) privileges via sudo. To grant the admin group root access, the administrator would add a line such as '%admin ALL=(ALL) ALL' to this file (ideally using visudo to prevent syntax…

System Management

Question

A Linux systems administrator is resolving a privileged access issue for users who are members of an admin group. Which of the following configuration files should the administrator update so the users in the admin group will have root privileged access to the Linux system?

Options

  • A/etc/sudoers
  • B/etc/login.defs
  • C/etc/group
  • D/etc/shadow

How the community answered

(43 responses)
  • A
    95% (41)
  • B
    2% (1)
  • C
    2% (1)

Explanation

The /etc/sudoers file controls which users and groups can execute commands with elevated (root) privileges via sudo. To grant the admin group root access, the administrator would add a line such as '%admin ALL=(ALL) ALL' to this file (ideally using visudo to prevent syntax errors). Option B (/etc/login.defs) contains system-wide settings for password aging and UID/GID ranges, not privilege grants. Option C (/etc/group) defines group memberships but does not grant sudo or root privileges. Option D (/etc/shadow) stores hashed passwords and account expiration data, not privilege configurations.

Topics

#Sudoers#Privileged access#Linux administration#User management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice