ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 298 - XK0-005 discussion

Report
Export

Joe, a user, is unable to log in to the system. The Linux administrator checks the /etc/passwd file and reviews the following output:

Joe:x:1002:1002::/home/Joe:/sbin/nologin

Which of the following should the administrator do to fix this issue?

A.

Remove the x entry in the /etc/passwd file for Joe

Answers
A.

Remove the x entry in the /etc/passwd file for Joe

B.

Change the /sbin/nologin entry to /bin/sh for Joe

Answers
B.

Change the /sbin/nologin entry to /bin/sh for Joe

C.

Issue the usermod -l Joe command

Answers
C.

Issue the usermod -l Joe command

D.

Ensure that a corresponding entry is in the /etc/shadow file for Joe

Answers
D.

Ensure that a corresponding entry is in the /etc/shadow file for Joe

Suggested answer: B

Explanation:

The /sbin/nologin shell is used to prevent a user from logging in. To allow Joe to log in, the administrator should change his shell to /bin/sh, which is a standard login shell in Linux. This change will allow Joe to access the system normally.

asked 09/10/2024
Son Pham Hong
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first