NAME [命令名]
shells - 有效登录 shell 的路径名
描述
/etc/shells 是一个文本文件,其中包含有效登录 shell 的路径全名。 chsh(1) 需要参考这个文件,并且其他程序也可以查询该文件。有些程序从这个文件判断用户是不是标准用户。比如: ftp 守护进程一般不会允许那些所用的 shell 没有在该文件中注明用户访问。
实例
/etc/shells 可能包含以下路径:
- /bin/sh
/bin/csh
相关文件
/etc/shells
又见
chsh(1),getusershell(3)
#p#
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.
EXAMPLES
/etc/shells may contain the following paths:
- /bin/sh
/bin/csh
FILES
/etc/shells
SEE ALSO
chsh(1), getusershell(3)