SV-227693r603266_rule
V-227693
SRG-OS-000480
GEN002140
CAT II
10
Use the chsh utility or edit the /etc/passwd file and correct the error by changing the default shell of the account in error to an acceptable shell name contained in the /etc/shells file.
Confirm the login shells referenced in the /etc/passwd file are listed in the /etc/shells file.
Procedure:
# more /etc/passwd
# more /etc/shells
The /usr/bin/false, /bin/false, /dev/null, /sbin/nologin, (and equivalents), and sdshell will be considered valid shells for use in the /etc/passwd file, but will not be listed in the /etc/shells file.
If a shell referenced in /etc/passwd is not listed in the shells file, excluding the above mentioned shells, this is a finding.
V-227693
False
GEN002140
Confirm the login shells referenced in the /etc/passwd file are listed in the /etc/shells file.
Procedure:
# more /etc/passwd
# more /etc/shells
The /usr/bin/false, /bin/false, /dev/null, /sbin/nologin, (and equivalents), and sdshell will be considered valid shells for use in the /etc/passwd file, but will not be listed in the /etc/shells file.
If a shell referenced in /etc/passwd is not listed in the shells file, excluding the above mentioned shells, this is a finding.
M
4061