mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-08 10:37:22 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2105 af4574ff-66df-0310-9fd7-8a98e5e911e0
31 lines
1.0 KiB
XML
31 lines
1.0 KiB
XML
<sect1 id="postlfs-config-shells">
|
|
<?dbhtml filename="etcshells.html"?>
|
|
<title>/etc/shells</title>
|
|
|
|
<para>The <filename>shells</filename> file contains a list of
|
|
login shells on the system. Applications use this file to determine
|
|
whether a shell is valid. For each shell a single line should be
|
|
present, consisting of the shell's path, relative to root.</para>
|
|
|
|
<para>For example, this file is consulted by <command>chsh</command> to
|
|
determine whether a normal user may change the login shell for her
|
|
own account. If the command name is not listed, the user will be denied of
|
|
change.</para>
|
|
|
|
<para>It is a requirement for applications such as
|
|
<acronym>GDM</acronym> which does not populate the face browser if it
|
|
can't find <filename>/etc/shells</filename> or <acronym>FTP</acronym>
|
|
daemons which traditionally disallow access to users with shells not
|
|
included in this file.</para>
|
|
|
|
<screen><userinput><command>cat > /etc/shells << "EOF"</command>
|
|
# Begin /etc/shells
|
|
|
|
/bin/sh
|
|
/bin/bash
|
|
|
|
# End /etc/shells
|
|
<command>EOF</command></userinput></screen>
|
|
|
|
</sect1>
|