10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
6.2
6.2.0
6.2.0-rc1
6.2.0-rc2
6.3
6.3-rc1
6.3-rc2
6.3-rc3
7.10
7.4
7.5
7.6
7.6-blfs
7.6-systemd
7.7
7.8
7.9
8.0
8.1
8.2
8.3
8.4
9.0
9.1
basic
bdubbs/svn
elogind
gimp3
gnome
kde5-13430
kde5-14269
kde5-14686
kea
ken/TL2024
ken/inkscape-core-mods
ken/tuningfonts
krejzi/svn
lazarus
lxqt
nosym
perl-modules
plabs/newcss
plabs/python-mods
python3.11
qt5new
rahul/power-profiles-daemon
renodr/vulkan-addition
systemd-11177
systemd-13485
trunk
upgradedb
xry111/for-12.3
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/spidermonkey128
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since da4d54c was 853ae568, checked in by Randy McMurchy <randy@…>, 19 years ago |
Minor textual changes to the '/etc/shells', 'compressdoc' and 'Random Number Generation' sections of Chapter 3
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4763 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[f8d632ac] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[f8d632ac] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[0290a023] | 8 | <sect1 id="postlfs-config-shells" xreflabel="The /etc/shells File">
|
---|
[74ce7a3] | 9 | <?dbhtml filename="etcshells.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
| 16 | <title>The /etc/shells File</title>
|
---|
| 17 |
|
---|
| 18 | <indexterm zone="postlfs-config-shells">
|
---|
| 19 | <primary sortas="e-etc-shells">/etc/shells</primary>
|
---|
| 20 | </indexterm>
|
---|
| 21 |
|
---|
[e0d33ef] | 22 | <para>The <filename>shells</filename> file contains a list of
|
---|
[74ce7a3] | 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
|
---|
[853ae568] | 25 | present, consisting of the shell's path, relative to the root of the
|
---|
| 26 | directory structure (/).</para>
|
---|
[74ce7a3] | 27 |
|
---|
[d612b9f] | 28 | <para>For example, this file is consulted by <command>chsh</command>
|
---|
[e615d9b] | 29 | to determine whether an unprivileged user may change the login shell for her
|
---|
[74ce7a3] | 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
|
---|
[e0d33ef] | 34 | <application>GDM</application> which does not populate the
|
---|
[853ae568] | 35 | face browser if it can't find <filename>/etc/shells</filename>, or
|
---|
[e0d33ef] | 36 | FTP daemons which traditionally disallow access to users
|
---|
[74ce7a3] | 37 | with shells not included in this file.</para>
|
---|
| 38 |
|
---|
| 39 | <screen role="root"><userinput>cat > /etc/shells << "EOF"
|
---|
| 40 | <literal># Begin /etc/shells
|
---|
[975d907a] | 41 |
|
---|
| 42 | /bin/sh
|
---|
| 43 | /bin/bash
|
---|
| 44 |
|
---|
[74ce7a3] | 45 | # End /etc/shells</literal>
|
---|
| 46 | EOF</userinput></screen>
|
---|
[975d907a] | 47 |
|
---|
| 48 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.