<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title></title>

</head>

<body>

<pre>   .\&quot; Copyright (c) 1998 Thorsten Kukuk (kukuk@vt.uni-paderborn.de)

.\&quot;

.\&quot; This is free documentation; you can redistribute it and/or

.\&quot; modify it under the terms of the GNU General Public License as

.\&quot; published by the Free Software Foundation; either version 2 of

.\&quot; the License, or (at your option) any later version.

.\&quot;

.\&quot; The GNU General Public License's references to &quot;object code&quot;

.\&quot; and &quot;executables&quot; are to be interpreted as the output of any

.\&quot; document formatting or typesetting system, including

.\&quot; intermediate and printed output.

.\&quot;

.\&quot; This manual is distributed in the hope that it will be useful,

.\&quot; but WITHOUT ANY WARRANTY; without even the implied warranty of

.\&quot; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

.\&quot; GNU General Public License for more details.

.\&quot;

.\&quot; You should have received a copy of the GNU General Public

.\&quot; License along with this manual; if not, write to the Free

.\&quot; Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,

.\&quot; USA.

.\&quot;

.\&quot; This manual page based on the GNU C Library info pages.

.\&quot;

.TH NSSWITCH.CONF 5 &quot;11 January 1998&quot; &quot;Linux&quot; &quot;Linux Programmer's Manual&quot;

.SH NAME

nsswitch.conf \- ϵͳݿ⼰ַ񿪹ļ

.SH DESCRIPTION

C ܶຯҪԱڱػ, ϰ

ʹļ(`/etc/passwd') һ. 

, ϢNIS, DNS, ͨ, 

ұC , ʹõǹ̶˳. 

.LP

NYS ֵ֧Linux libc5ԼGNU C Library 2.x (libc.so.6)

, һķ. ÷ģSun 

Microsystems˾Solaris 2 C ķ, ҲϮ

ǵ, Ϊ &quot;ַ񿪹(NSS)&quot;.  &quot;ݿ&quot; 

˳ļ

.B /etc/nsswitch.conf

ָ. 

.LP

NSS пݿ: 

.TP

.B aliases

ʼ, 

.BR sendmail (8)

ʹøļ. 

.TP

.B ethers

̫. 

.TP

.B group

û, 

.BR getgrent (3)

ʹøļ. 

.TP

.B hosts

, 

.BR gethostbyname (3)

ԼƵĺʹ

 ˸ļ. 

.TP

.B netgroup

ûб, ʹʹøļ. 

.TP

.B network

, 

.BR getnetent (3)

ʹøļ. 

.TP

.B passwd

û, 

.BR getpwent (3)

ʹøļ. 

.TP

.B protocols

Э, 

.BR getprotoent (3)

ʹøļ. 

.TP

.B publickey

NIS+NFS ʹõsecure_rpcĹܳ. 

.TP

.B rpc

Զ̵̹ú, 

.BR getrpcbyname (3)

ƺ

 ʹøļ. 

.TP

.B services

, 

.BR getservent (3)

ʹøļ. 

.TP

.B shadow

shadowû,

.BR getspnam (3)

ʹøļ. 

.LP



.B /etc/nsswitch.conf

ļһ (ϵͳû

.B /etc/nsswitch.conf

ļĻ, ȱʡ):

.sp 1n

.PD 0

.TP 16

passwd:

compat

.TP

group:

compat

.TP

shadow:

compat

.sp 1n

.TP

hosts:

dns [!UNAVAIL=return] files

.TP

networks:

nis [NOTFOUND=return] files

.TP

ethers:

nis [NOTFOUND=return] files

.TP

protocols:

nis [NOTFOUND=return] files

.TP

rpc:

nis [NOTFOUND=return] files

.TP

services:

nis [NOTFOUND=return] files

.PD

.LP

һı˵ݿ, ÿеಿָβ

. ÿݿⶼԷֱָҷ.

.LP

ÿݿù淶ͬ: 

.PD 0

.TP

* 淶, `files', `db', `nis'.

.TP

* ԲҽķӦ, `[NOTFOUND=return]'.

.PD

.LP

NYSֵ֧libc5淶`files', `nis'`nisplus',

⣬Զhosts ָ`dns' Ϊ, passwdgroup 

ָ`compat', ܶshadowָ`compat'.

.LP

GNU C Library, ÿõSERVICEļ

.B /lib/libnss_SERVICE.so.1

֮Ӧ. ڱ׼װʱ, ʹ`files',

`db', `nis'Լ`nisplus'. , Զhosts ָ`dns' Ϊ

, passwd, group, shadow ָ`compat', NYS 

ֵ֧libc5, ֧һ. 

.LP

˵еĵڶʹûԸõؿƲҹ. Action

֮, , ʽ: 

.LP

`[' ( `!'? STATUS `=' ACTION )+ `]'

.LP



.sp 1n

.PD 0

.TP

STATUS =&gt; success | notfound | unavail | tryagain

.TP

ACTION =&gt; return | continue

.PD

.LP

ԹؼֵĴСд. STATUSֵǵָҺ

Ľ, : 

.TP

.B success

ûд, õҪĽ. ȱʡaction`return'. 

.TP

.B notfound

˳, ûеõҪĽ. ȱʡaction`continue'.

.TP

.B unavail

ò. ζűҪļ, ,

DNS 񲻿ûѯ.ȱʡaction`continue'. 

.TP

.B tryagain

ʱ. ļס˻߷ǰ 

ܹ. ȱʡaction`continue'.

.LP

.SS ʹ+/-﷨Ľ(compat ģʽ)

NYSֵ֧linux libc5ûַ񿪹, ûһЩ

ĲԿ. 

.B /etc/passwd

ʹ+user+@netgroup

Ŀ(NIS passwdӳָû), Լ-user-@netgroup

Ŀ(ָû),  + Ŀ(ÿû, 

NIS passwdӳų). ֻһ + 

.B /etc/passwd

ĩβ, Դ˰NIS ж. Ը, ṩݵ

ʽ(`passwd: files nis'), ʹ

.BR /etc/passwd,

.B /etc/group



.BR /etc/shadow

ӵ + Ŀ. ⻹, 

NSS `compat' ṩȫ+/-﷨. ǿԶαݿ

.BR passwd_compat,

.B group_compat



.BR shadow_compat

ָ`nisplus'

ȱʡ`nis', עֻGNU C Libraryʹ

αݿ. 



.SH FILES

ΪSERVICEķͨλ/libĹlibnss_SERVICE.so.1

ʵֵ. 

.TP 25

.PD 0

.B /etc/nsswitch.conf

ļ

.TP

.B /lib/libnss_compat.so.1

ΪGNU C Library 2.xʵ`compat'

.TP

.B /lib/libnss_db.so.1

ΪGNU C Library 2.xʵ`db'

.TP

.B /lib/libnss_dns.so.1

ΪGNU C Library 2.xʵ`dns'

.TP

.B /lib/libnss_files.so.1

ΪGNU C Library 2.xʵ`files'

.TP

.B /lib/libnss_hesoid.so.1

ΪGNU C Library 2.xʵ`hesoid'

.TP

.B /lib/libnss_nis.so.1

ΪGNU C Library 2.xʵ`nis'

.TP

.B /lib/libnss_nisplus.so.1

ΪGNU C Library 2.xʵ`nisplus'

.SH NOTES

ÿõnsswitch.conf ļĽֻضһļ, 

ļ汻ı, ̽Ȼʹԭ. 

.LP

Solaris , ܾ̬ʹNSS Service ĳ, 

Linux , . 





./&quot; İάmail to:mapping@263.net</pre>

</body>

</html>