10.0
10.0-rc1
10.1
10.1-rc1
11.0
11.0-rc1
11.0-rc2
11.0-rc3
11.1
11.1-rc1
11.2
11.2-rc1
11.3
11.3-rc1
12.0
12.0-rc1
12.1
12.1-rc1
12.2-rc1
8.2
8.3
8.4
9.0
9.1
arm
bdubbs/gcc13
ml-11.0
multilib
renodr/libudev-from-systemd
s6-init
trunk
xry111/arm64
xry111/arm64-12.0
xry111/clfs-ng
xry111/lfs-next
xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
xry111/mips64el
xry111/pip3
xry111/rust-wip-20221008
xry111/update-glibc
Rev | Line | |
---|
[d5e2e1c] | 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 |
|
---|
[d9529fd] | 11 | <!--
|
---|
[d5e2e1c] | 12 | <sect1info>
|
---|
[26c49f6] | 13 | <othername>$LastChangedBy$</othername>
|
---|
| 14 | <date>$Date$</date>
|
---|
[d5e2e1c] | 15 | </sect1info>
|
---|
[d9529fd] | 16 | -->
|
---|
[d5e2e1c] | 17 | <title>Creating the /etc/shells File</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-config-shells">
|
---|
| 20 | <primary sortas="e-etc-shells">/etc/shells</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <para>The <filename>shells</filename> file contains a list of
|
---|
| 24 | login shells on the system. Applications use this file to determine
|
---|
| 25 | whether a shell is valid. For each shell a single line should be
|
---|
| 26 | present, consisting of the shell's path, relative to the root of the
|
---|
| 27 | directory structure (/).</para>
|
---|
| 28 |
|
---|
| 29 | <para>For example, this file is consulted by <command>chsh</command>
|
---|
| 30 | to determine whether an unprivileged user may change the login shell for her
|
---|
| 31 | own account. If the command name is not listed, the user will be denied of
|
---|
| 32 | change.</para>
|
---|
| 33 |
|
---|
| 34 | <para>It is a requirement for applications such as
|
---|
| 35 | <application>GDM</application> which does not populate the
|
---|
| 36 | face browser if it can't find <filename>/etc/shells</filename>, or
|
---|
| 37 | FTP daemons which traditionally disallow access to users
|
---|
| 38 | with shells not included in this file.</para>
|
---|
| 39 |
|
---|
| 40 | <screen role="root"><userinput>cat > /etc/shells << "EOF"
|
---|
| 41 | <literal># Begin /etc/shells
|
---|
| 42 |
|
---|
| 43 | /bin/sh
|
---|
| 44 | /bin/bash
|
---|
| 45 |
|
---|
| 46 | # End /etc/shells</literal>
|
---|
| 47 | EOF</userinput></screen>
|
---|
| 48 |
|
---|
| 49 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.