mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 05:22:13 +08:00
a0f03b0675
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2591 af4574ff-66df-0310-9fd7-8a98e5e911e0
42 lines
1.4 KiB
XML
42 lines
1.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
]>
|
|
|
|
<sect1 id="postlfs-config-shells">
|
|
<sect1info>
|
|
<othername>$LastChangedBy: $</othername>
|
|
<date>$Date: $</date>
|
|
</sect1info>
|
|
<?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>
|