From d5e2e1c90ef49961bd5d30068a94481649a0b050 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 3 Nov 2014 19:10:11 +0000 Subject: 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 --- chapter01/changelog.xml | 11 +++++++++++ chapter07/chapter07.xml | 1 + chapter07/etcshells.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ general.ent | 4 ++-- 4 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 chapter07/etcshells.xml diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index a21609a4c..ece1ff087 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -35,6 +35,17 @@ --> + + 2014-11-01 + + + [bdubbs] - Move the page concerning /etc/shells + from BLFS to LFS Chapter 7. Fixes + #3705. + + + + 2014-11-01 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 @@ + 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 @@ + + + %general-entities; +]> + + + + + + $LastChangedBy: randy $ + $Date: 2007-04-04 14:42:53 -0500 (Wed, 04 Apr 2007) $ + + + Creating the /etc/shells File + + + /etc/shells + + + The shells 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 (/). + + For example, this file is consulted by chsh + 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. + + It is a requirement for applications such as + GDM which does not populate the + face browser if it can't find /etc/shells, or + FTP daemons which traditionally disallow access to users + with shells not included in this file. + +cat > /etc/shells << "EOF" +# Begin /etc/shells + +/bin/sh +/bin/bash + +# End /etc/shells +EOF + + diff --git a/general.ent b/general.ent index 93926c91e..903fd3bd4 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - + - + -- cgit v1.2.3-54-g00ecf