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

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

LPI 102-500 Exam - Topic 1 Question 121 Discussion

Actual exam question for LPI's 102-500 exam
Question #: 121
Topic #: 1
[All 102-500 Questions]

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

Show Suggested Answer Hide Answer
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.

Contribute your Thoughts:

0/2000 characters
Jesus
17 hours ago
Good to have that knowledge!
upvoted 0 times
...
Angella
6 days ago
I remember studying it in class.
upvoted 0 times
...
Mee
11 days ago
Exactly, without it, no sudo access.
upvoted 0 times
...
Jesus
16 days ago
It's crucial for permissions.
upvoted 0 times
...
Angella
21 days ago
I feel confident about this question.
upvoted 0 times
...
Mee
27 days ago
Yeah, that's the right file!
upvoted 0 times
...
Jesus
1 month ago
I think it's /etc/sudoers.
upvoted 0 times
...
Luisa
1 month ago
Yup, /etc/sudoers is the main one!
upvoted 0 times
...
Jovita
1 month ago
I thought there were more files involved?
upvoted 0 times
...
Tarra
2 months ago
Wait, is it really just that file?
upvoted 0 times
...
Wendell
2 months ago
Totally agree, that's the one!
upvoted 0 times
...
Lindsey
2 months ago
It's /etc/sudoers.
upvoted 0 times
...
Jeniffer
2 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.
upvoted 0 times
...
Florinda
2 months ago
I’m a bit confused; I thought there might be another file involved, but I can’t recall which one.
upvoted 0 times
...
Brynn
2 months ago
I remember practicing with a similar question, and I believe it’s definitely /etc/sudoers.
upvoted 0 times
...
Estrella
3 months ago
I think the file is something like /etc/sudoers, but I’m not entirely sure about the exact path.
upvoted 0 times
...

Save Cancel