source: chapter07/etcshells.xml@ 5c14293

7.9-systemd
Last change on this file since 5c14293 was 5c14293, checked in by DJ Lucas <dj@…>, 8 years ago

Fix svn properties on chapter07/etcshells.xml

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10994 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-config-shells" xreflabel="Creating the /etc/shells File">
9 <?dbhtml filename="etcshells.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
15
16 <title>Creating the /etc/shells File</title>
17
18 <indexterm zone="ch-config-shells">
19 <primary sortas="e-etc-shells">/etc/shells</primary>
20 </indexterm>
21
22 <para>The <filename>shells</filename> file contains a list of
23 login shells on the system. Applications use this file to determine
24 whether a shell is valid. For each shell a single line should be
25 present, consisting of the shell's path, relative to the root of the
26 directory structure (/).</para>
27
28 <para>For example, this file is consulted by <command>chsh</command>
29 to determine whether an unprivileged user may change the login shell for her
30 own account. If the command name is not listed, the user will be denied of
31 change.</para>
32
33 <para>It is a requirement for applications such as
34 <application>GDM</application> which does not populate the
35 face browser if it can't find <filename>/etc/shells</filename>, or
36 FTP daemons which traditionally disallow access to users
37 with shells not included in this file.</para>
38
39<screen role="root"><userinput>cat &gt; /etc/shells &lt;&lt; "EOF"
40<literal># Begin /etc/shells
41
42/bin/sh
43/bin/bash
44
45# End /etc/shells</literal>
46EOF</userinput></screen>
47
48</sect1>
Note: See TracBrowser for help on using the repository browser.