TestOut Linux Pro Practice Test 2025 – All-in-One Guide to Master Your Certification!

Image Description

Question: 1 / 400

Which of the following shells is NOT typically listed in the /etc/shells file?

/bin/sh

/bin/bash

/bin/ksh

/sbin/nologin

The /etc/shells file contains a list of valid login shells available on the system. This file is essential for defining which shells users can use for their login sessions. Common shells, such as /bin/sh, /bin/bash, and /bin/ksh, are interactive command-line interpreters, and they are typically listed in the /etc/shells file because they are intended for user logins and interactive use.

In contrast, /sbin/nologin serves a different purpose. It is not a shell per se; instead, it is a program that is used to prevent a user from logging into the system. When set as a user's shell, it will deny the user access when they attempt to log in, usually displaying a message indicating that logins are not permitted. Since its primary function is to block access rather than provide an interactive shell session, it is not included in the /etc/shells file. This distinction is what makes /sbin/nologin the correct answer.

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy