ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 370 - XK0-005 discussion

Report
Export

A Linux administrator is creating a user that can run the FTP service but cannot log in to the system. The administrator sets /bin/false as a login shell for the user. When the user tries to run the FTP service, it is rejected with an 'invalid shell: /bin/false' message. Which of the following is the best way to resolve the issue?

A.

Change ownership of /bin/false to the FTP user

Answers
A.

Change ownership of /bin/false to the FTP user

B.

Add /bin/false entry to the /etc/shells file

Answers
B.

Add /bin/false entry to the /etc/shells file

C.

Make /bin/false an executable file

Answers
C.

Make /bin/false an executable file

D.

Change the user's default shell to /bin/bash

Answers
D.

Change the user's default shell to /bin/bash

Suggested answer: B

Explanation:

The /etc/shells file contains a list of valid login shells. Since /bin/false is not listed as a valid shell, adding it to the /etc/shells file will resolve the issue and allow the user to run the FTP service without being able to log into the system interactively.

asked 18/10/2024
Ed Robbins
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first