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.
|
||||
.\" All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
.\" 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.
|
||||
.\"
|
||||
.Dd January 16, 1998
|
||||
.Dd January 20, 1998
|
||||
.Dt NSSWITCH.CONF 5
|
||||
.Os NetBSD
|
||||
.Sh NAME
|
||||
|
@ -48,7 +48,7 @@ The configuration file controls how a process looks up various databases
|
|||
containing information regarding hosts, users (passwords), groups,
|
||||
netgroups, etc.
|
||||
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
|
||||
.Nm nsswitch.conf .
|
||||
.Pp
|
||||
|
@ -70,12 +70,14 @@ and
|
|||
.Pa /etc/passwd .
|
||||
.It dns Internet Domain Name System.
|
||||
.Dq hosts
|
||||
uses
|
||||
and
|
||||
.Sq networks
|
||||
use
|
||||
.Sy IN
|
||||
class entries, all other databases use
|
||||
.Sy HS
|
||||
class (Hesiod) entries.
|
||||
.It nis NIS (formally YP)
|
||||
.It nis NIS (formerly YP)
|
||||
.It compat support
|
||||
.Sq +/-
|
||||
in the
|
||||
|
@ -92,10 +94,11 @@ The following databases are used by the following C library functions:
|
|||
.It group
|
||||
.Xr getpwent 3
|
||||
.It hosts
|
||||
.Xr gethostbyname 3 ,
|
||||
.Xr gethostbyaddr 3
|
||||
.Xr gethostbyname 3
|
||||
.It netgroup
|
||||
.Xr getnetgrent 3
|
||||
.It networks
|
||||
.Xr getnetbyname 3
|
||||
.It passwd
|
||||
.Xr getpwent 3
|
||||
.It shells
|
||||
|
@ -107,8 +110,8 @@ The following status codes are available:
|
|||
.Sy Status Description
|
||||
.It success The requested entry was found.
|
||||
.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 unavail The source is not responding, or entry is corrupt.
|
||||
.El
|
||||
.Ss Actions
|
||||
For each of the status codes, one of two actions is possible:
|
||||
|
@ -157,7 +160,7 @@ In historical multi-source implementations, the
|
|||
.Sq +
|
||||
and
|
||||
.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
|
||||
.Tn NIS .
|
||||
Although
|
||||
|
@ -208,6 +211,8 @@ Exceptions are:
|
|||
.Bd -
|
||||
.Bl -column passwd_compat "dns files" -offset indent
|
||||
.Sy Database Default source list
|
||||
.It group compat
|
||||
.It group_compat nis
|
||||
.It hosts dns files
|
||||
.It passwd compat
|
||||
.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."
|
||||
This treats nis as the authoritive source of information, except
|
||||
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
|
||||
.Xr nsdispatch 3 ,
|
||||
.Xr resolv.conf 5 ,
|
||||
|
|
Loading…
Reference in New Issue