aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2014-11-03 19:10:11 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2014-11-03 19:10:11 +0000
commitd5e2e1c90ef49961bd5d30068a94481649a0b050 (patch)
tree4066bdd7df7b36498d4e0bd5b03339b05c8beceb /chapter07
parent6379f6929a5c6359b1c7d317a21aad2fb7a06cd2 (diff)
Move the page concerning /etc/shells from BLFS to LFS Chapter 7.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10788 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/chapter07.xml1
-rw-r--r--chapter07/etcshells.xml48
2 files changed, 49 insertions, 0 deletions
diff --git a/chapter07/chapter07.xml b/chapter07/chapter07.xml
index a12194c62..e1abbc637 100644
--- a/chapter07/chapter07.xml
+++ b/chapter07/chapter07.xml
@@ -26,5 +26,6 @@
<!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="site.xml"/>-->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="profile.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inputrc.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="etcshells.xml"/>
</chapter>
diff --git a/chapter07/etcshells.xml b/chapter07/etcshells.xml
new file mode 100644
index 000000000..3e6c334c3
--- /dev/null
+++ b/chapter07/etcshells.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+
+<sect1 id="ch-config-shells" xreflabel="Creating the /etc/shells File">
+ <?dbhtml filename="etcshells.html"?>
+
+ <sect1info>
+ <othername>$LastChangedBy: randy $</othername>
+ <date>$Date: 2007-04-04 14:42:53 -0500 (Wed, 04 Apr 2007) $</date>
+ </sect1info>
+
+ <title>Creating the /etc/shells File</title>
+
+ <indexterm zone="ch-config-shells">
+ <primary sortas="e-etc-shells">/etc/shells</primary>
+ </indexterm>
+
+ <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 the root of the
+ directory structure (/).</para>
+
+ <para>For example, this file is consulted by <command>chsh</command>
+ to determine whether an unprivileged 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
+ <application>GDM</application> which does not populate the
+ face browser if it can't find <filename>/etc/shells</filename>, or
+ FTP daemons which traditionally disallow access to users
+ with shells not included in this file.</para>
+
+<screen role="root"><userinput>cat &gt; /etc/shells &lt;&lt; "EOF"
+<literal># Begin /etc/shells
+
+/bin/sh
+/bin/bash
+
+# End /etc/shells</literal>
+EOF</userinput></screen>
+
+</sect1>