Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 1 Question 121 Discussion

Posted by Stanford on Jun 17, 2026 at 10:19 PM

Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)

Suggested Answer: A

The /etc/sudoers file lists which users can execute commands using sudo, as well as which commands they can run, on which hosts, and as which users. The /etc/sudoers file is the main configuration file for the sudo command, which allows users to run commands as another user, usually the superuser or root. The /etc/sudoers file has a specific syntax and should be edited only with the visudo command, which checks the file for errors and locks it to prevent concurrent edits. The /etc/sudoers file contains entries that follow the format:

user host = (runas) command

where user is the name of the user who can run sudo, host is the name of the host where the user can run sudo, runas is the name of the user as whom the command will be executed, and command is the name of the command or a list of commands that the user can run with sudo. For example, the entry:

alice ALL = (root) /bin/ls, /usr/bin/whoami

means that the user alice can run sudo on any host, and can execute the commands /bin/ls and /usr/bin/whoami as the root user. The /etc/sudoers file also supports aliases, variables, wildcards, and other features that make it more flexible and powerful. For more details, see the sudoers manual page.


LPIC-1 Exam 102 Objectives, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Weight: 2, Key Knowledge Areas: Configure sudo and sudoers. Use sudo to execute commands as another user.

LPIC-1 Exam 102 Learning Materials, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Section 110.2.1: sudo and sudoers, Page 3-5.

Get Premium 102-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
18 comments · newest first
AN
Angella 1 month ago
Let's ace this exam!
ME
Mee 1 month ago
Hope everyone gets it right.
JE
Jesus 2 months ago
Good to have that knowledge!
AN
Angella 2 months ago
I remember studying it in class.
ME
Mee 2 months ago
Exactly, without it, no sudo access.
JE
Jesus 2 months ago
It's crucial for permissions.
AN
Angella 2 months ago
I feel confident about this question.
ME
Mee 2 months ago
Yeah, that's the right file!
JE
Jesus 3 months ago
I think it's /etc/sudoers.
LU
Luisa 3 months ago
Yup, /etc/sudoers is the main one!
JO
Jovita 3 months ago
I thought there were more files involved?
TA
Tarra 3 months ago
Wait, is it really just that file?
WE
Wendell 3 months ago
Totally agree, that's the one!
LI
Lindsey 3 months ago
It's /etc/sudoers.
JE
Jeniffer 4 months ago
I’m pretty sure it’s /etc/sudoers, but I need to double-check if there are any specific permissions related to it.
FL
Florinda 4 months ago
I’m a bit confused; I thought there might be another file involved, but I can’t recall which one.
BR
Brynn 4 months ago
I remember practicing with a similar question, and I believe it’s definitely /etc/sudoers.
ES
Estrella 4 months ago
I think the file is something like /etc/sudoers, but I’m not entirely sure about the exact path.
0/2000 characters

Save Cancel