How come /sbin/nologin is in /etc/shells contradicting the man page?
Daniel J Walsh
dwalsh at redhat.com
Tue May 22 17:41:29 UTC 2007
SHELLS(5) Linux Programmer’s Manual SHELLS(5)
NAME
shells - pathnames of valid login shells
DESCRIPTION
/etc/shells is a text file which contains the full pathnames of valid
login shells. This file is consulted by chsh(1) and available to be
queried by other programs.
Be aware that there are programs which consult this file to find out if
a user is a normal user. E.g.: ftp daemons traditionally disallow
access to users with shells not included in this file.
EXAMPLE
/etc/shells may contain the following paths:
/bin/sh
/bin/csh
FILES
/etc/shells
> grep ftp /etc/shells
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
This has led us to hack up the genhomedircon script to remove this from
valid shells.
More information about the Fedora-maintainers
mailing list