ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 277 - XK0-005 discussion

Report
Export

A Linux user is trying to execute commands with sudo but is receiving the following error:

$ sudo visudo

>>> /etc/sudoers: syntax error near line 28 <<<

sudo: parse error in /etc/sudoers near line 28

sudo: no valid sudoers sources found, quitting

The following output is provided:

# grep root /etc/shadow

root :* LOCK *: 14600 ::::::

Which of the following actions will resolve this issue?

A.
Log in directly using the root account and comment out line 28 from /etc/sudoers.
Answers
A.
Log in directly using the root account and comment out line 28 from /etc/sudoers.
B.
Boot the system in single user mode and comment out line 28 from /etc/sudoers.
Answers
B.
Boot the system in single user mode and comment out line 28 from /etc/sudoers.
C.
Comment out line 28 from /etc/sudoers and try to use sudo again.
Answers
C.
Comment out line 28 from /etc/sudoers and try to use sudo again.
D.
Log in to the system using the other regular user, switch to root, and comment out line 28 from /etc/sudoers.
Answers
D.
Log in to the system using the other regular user, switch to root, and comment out line 28 from /etc/sudoers.
Suggested answer: B
asked 02/10/2024
Solanki Narendra
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first