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…
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)- A95% (41)
- B2% (1)
- C2% (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
Community Discussion
No community discussion yet for this question.