xref: /netbsd-src/share/man/man5/shells.5 (revision 075022b349321510ad14036d70908681ed02f117)
1*075022b3Sagc.\"	$NetBSD: shells.5,v 1.8 2003/08/07 10:31:17 agc Exp $
2b5930afcSjtc.\"
3b5930afcSjtc.\" Copyright (c) 1986, 1991, 1993
4b5930afcSjtc.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
14*075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
30b5930afcSjtc.\"     @(#)shells.5	8.1 (Berkeley) 6/5/93
3161f28255Scgd.\"
32abda4debSlukem.Dd January 16, 1999
3361f28255Scgd.Dt SHELLS 5
347a1aea16Sgarbled.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm shells
3761f28255Scgd.Nd shell database
3861f28255Scgd.Sh DESCRIPTION
3961f28255ScgdThe
4061f28255Scgd.Nm shells
4161f28255Scgdfile contains a list of the shells on the system.
42abda4debSlukemIt can be used in conjunction with the Hesiod domain
43abda4debSlukem.Sq shells ,
44abda4debSlukemand the
45abda4debSlukem.Tn NIS
46abda4debSlukemmap
47abda4debSlukem.Sq shells ,
48abda4debSlukemas controlled by
49abda4debSlukem.Xr nsswitch.conf 5 .
50abda4debSlukem.Pp
5161f28255ScgdFor each shell a single line should be present, consisting of the
5261f28255Scgdshell's path, relative to root.
5361f28255Scgd.Pp
5471e62d7dSlukemA hash
5571e62d7dSlukem.Pq Dq \&#
5671e62d7dSlukemindicates the beginning of a comment; subsequent
5761f28255Scgdcharacters up to the end of the line are not interpreted by the
5861f28255Scgdroutines which search the file.
5961f28255ScgdBlank lines are also ignored.
6061f28255Scgd.Sh FILES
6161f28255Scgd.Bl -tag -width /etc/shells -compact
6261f28255Scgd.It Pa /etc/shells
6361f28255ScgdThe
6461f28255Scgd.Nm shells
6561f28255Scgdfile resides in
6661f28255Scgd.Pa /etc .
6761f28255Scgd.El
6861f28255Scgd.Sh SEE ALSO
69e876025cSabs.Xr chsh 1 ,
70abda4debSlukem.Xr getusershell 3 ,
71abda4debSlukem.Xr nsswitch.conf 5
7261f28255Scgd.Sh HISTORY
7361f28255ScgdThe
7461f28255Scgd.Nm
7561f28255Scgdfile format appeared in
7661f28255Scgd.Bx 4.3 tahoe .
77abda4debSlukem.Pp
78abda4debSlukemThe Hesiod and
79abda4debSlukem.Tn NIS
80abda4debSlukemsupport first appeared in
81abda4debSlukem.Nx 1.4 .
82