fix spelos and tyops. document networks and group defaults
This commit is contained in:
parent
40901ecd3c
commit
e612d0da5f
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: nsswitch.conf.5,v 1.8 1999/01/19 08:28:03 lukem Exp $
|
.\" $NetBSD: nsswitch.conf.5,v 1.9 1999/01/20 03:03:25 lukem Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
.\" Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
.\" TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
.\" TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||||
.\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd January 16, 1998
|
.Dd January 20, 1998
|
||||||
.Dt NSSWITCH.CONF 5
|
.Dt NSSWITCH.CONF 5
|
||||||
.Os NetBSD
|
.Os NetBSD
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -48,7 +48,7 @@ The configuration file controls how a process looks up various databases
|
||||||
containing information regarding hosts, users (passwords), groups,
|
containing information regarding hosts, users (passwords), groups,
|
||||||
netgroups, etc.
|
netgroups, etc.
|
||||||
Each database comes from a source (such as local files, DNS, and
|
Each database comes from a source (such as local files, DNS, and
|
||||||
.Tn NIS ),
|
.Tn NIS ) ,
|
||||||
and the order to look up the sources is specified in
|
and the order to look up the sources is specified in
|
||||||
.Nm nsswitch.conf .
|
.Nm nsswitch.conf .
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -70,12 +70,14 @@ and
|
||||||
.Pa /etc/passwd .
|
.Pa /etc/passwd .
|
||||||
.It dns Internet Domain Name System.
|
.It dns Internet Domain Name System.
|
||||||
.Dq hosts
|
.Dq hosts
|
||||||
uses
|
and
|
||||||
|
.Sq networks
|
||||||
|
use
|
||||||
.Sy IN
|
.Sy IN
|
||||||
class entries, all other databases use
|
class entries, all other databases use
|
||||||
.Sy HS
|
.Sy HS
|
||||||
class (Hesiod) entries.
|
class (Hesiod) entries.
|
||||||
.It nis NIS (formally YP)
|
.It nis NIS (formerly YP)
|
||||||
.It compat support
|
.It compat support
|
||||||
.Sq +/-
|
.Sq +/-
|
||||||
in the
|
in the
|
||||||
|
@ -92,10 +94,11 @@ The following databases are used by the following C library functions:
|
||||||
.It group
|
.It group
|
||||||
.Xr getpwent 3
|
.Xr getpwent 3
|
||||||
.It hosts
|
.It hosts
|
||||||
.Xr gethostbyname 3 ,
|
.Xr gethostbyname 3
|
||||||
.Xr gethostbyaddr 3
|
|
||||||
.It netgroup
|
.It netgroup
|
||||||
.Xr getnetgrent 3
|
.Xr getnetgrent 3
|
||||||
|
.It networks
|
||||||
|
.Xr getnetbyname 3
|
||||||
.It passwd
|
.It passwd
|
||||||
.Xr getpwent 3
|
.Xr getpwent 3
|
||||||
.It shells
|
.It shells
|
||||||
|
@ -107,8 +110,8 @@ The following status codes are available:
|
||||||
.Sy Status Description
|
.Sy Status Description
|
||||||
.It success The requested entry was found.
|
.It success The requested entry was found.
|
||||||
.It notfound The entry is not present at this source.
|
.It notfound The entry is not present at this source.
|
||||||
.It unavail The source is not responding, or entry is corrupt.
|
|
||||||
.It tryagain The source is busy, and may respond to retries.
|
.It tryagain The source is busy, and may respond to retries.
|
||||||
|
.It unavail The source is not responding, or entry is corrupt.
|
||||||
.El
|
.El
|
||||||
.Ss Actions
|
.Ss Actions
|
||||||
For each of the status codes, one of two actions is possible:
|
For each of the status codes, one of two actions is possible:
|
||||||
|
@ -157,7 +160,7 @@ In historical multi-source implementations, the
|
||||||
.Sq +
|
.Sq +
|
||||||
and
|
and
|
||||||
.Sq -
|
.Sq -
|
||||||
characters are used to signify the importing of user password and
|
characters are used to specify the importing of user password and
|
||||||
group information from
|
group information from
|
||||||
.Tn NIS .
|
.Tn NIS .
|
||||||
Although
|
Although
|
||||||
|
@ -208,6 +211,8 @@ Exceptions are:
|
||||||
.Bd -
|
.Bd -
|
||||||
.Bl -column passwd_compat "dns files" -offset indent
|
.Bl -column passwd_compat "dns files" -offset indent
|
||||||
.Sy Database Default source list
|
.Sy Database Default source list
|
||||||
|
.It group compat
|
||||||
|
.It group_compat nis
|
||||||
.It hosts dns files
|
.It hosts dns files
|
||||||
.It passwd compat
|
.It passwd compat
|
||||||
.It passwd_compat nis
|
.It passwd_compat nis
|
||||||
|
@ -237,16 +242,6 @@ The criteria
|
||||||
sets a policy of "if the user is notfound in nis, don't try files."
|
sets a policy of "if the user is notfound in nis, don't try files."
|
||||||
This treats nis as the authoritive source of information, except
|
This treats nis as the authoritive source of information, except
|
||||||
when the server is down.
|
when the server is down.
|
||||||
.Pp
|
|
||||||
If the older-style "+/-" syntax for
|
|
||||||
.Pa /etc/passwd
|
|
||||||
is required, use:
|
|
||||||
.Bl -column "passwd_compat:" -offset indent
|
|
||||||
.It passwd: compat
|
|
||||||
.It group: compat
|
|
||||||
.It passwd_compat: nis
|
|
||||||
.It group_compat: nis
|
|
||||||
.El
|
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr nsdispatch 3 ,
|
.Xr nsdispatch 3 ,
|
||||||
.Xr resolv.conf 5 ,
|
.Xr resolv.conf 5 ,
|
||||||
|
|
Loading…
Reference in New Issue