RaghuNath L proclaimed:
> This is the sample nsswitch file i found in /usr/doc/yp-tools....
> 
> i have many m/c which are nis client's server's are solaris 2.6 and home
> dir are mapped through nfs servers(file servers).
> 
> i just run the ypbind and mv /etc/auto.master and misc to
> auto.master.org and misc.org this mount's the automounter maps.

Why did you mv auto.master and auto.misc out of the way?  They do not do
much harm if they are there and empty.

> i leave the /etc/nsswitch.conf as it is .
> 
> but below you find nsswitch  sujjested by some body what is advantage i
> get with this.
> 
> what is this compat means?

I have no idea.

> is nis+ can be implimented on linux?

AFAIK, yes.

> why do services ,protocols,netmasks, ethers,rpc tobe nis.

See below.

> there may diffrent services running in each host is right put it as nis?
> 
> why autofs always looks at /etc/auto.master even if /etc/nsswitch.conf
> points to nis as i told you before i mv it aut......org is there any
> batter way of doing it?

autofs does not use the nsswitch mechanism.  Look at it this way:  there
are two basic things - NFS and NIS.  NFS is a way of sharing remote files
and filesystems.  NIS is a network "database".  autofs is obviously a piece
in the NFS puzzle.  nsswitch.conf is part of the NIS puzzle.

> can i have slave server and create my own maps in addition to master
> maps i mean cani export /home from linux nis slave.

I don't know.

> please  some body solve my doughts.
> 
> # /etc/nsswitch.conf
> #
> # An example Name Service Switch config file. This file should be
> # sorted with the most-used services at the beginning.
> #
> # The entry '[NOTFOUND=return]' means that the search for an
> # entry should stop if the search in the previous entry turned
> # up nothing. Note that if the search failed due to some other reason
> # (like no NIS server responding) then the search continues with the
> # next entry.
> #
> # Legal entries are:
> #
> #       nisplus                 Use NIS+ (NIS version 3)
> #       nis                     Use NIS (NIS version 2), also called YP
> #       dns                     Use DNS (Domain Name Service)
> #       files                   Use the local files
> #       db                      Use the /var/db databases
> #       [NOTFOUND=return]       Stop searching if not found so far
> #
> 
> passwd:     compat
> group:      compat
> 
> hosts:      nis files dns


This line means when doing an nslookup, search the output of 'ypcat hosts'
before looking at /etc/hosts.  If both fail, then look up the hostname
using the DNS server.

> services:   nis [NOTFOUND=return] files

Look at the output of 'ypcat servervices' before looking at
/etc/services...

> networks:   nis [NOTFOUND=return] files
> protocols:  nis [NOTFOUND=return] files
> rpc:        nis [NOTFOUND=return] files
> ethers:     nis [NOTFOUND=return] files
> netmasks:   nis [NOTFOUND=return] files
> netgroup:   nis
> bootparams: nis [NOTFOUND=return] files
> publickey:  nis [NOTFOUND=return] files
> automount:  files
> aliases:    nis [NOTFOUND=return] files

Same as above.

Thaths

-- 
Quimby: Simpson, you idiot! You spent your entire year's budget in a
month! Your department's broke!
Homer:  [panics] Uh...oh no! Wait! I think I've got the perfect solution.
Quimby: You'd better!  'Cause those garbage men won't work for free!
Homer:  D'oh!  
Sudhakar C13n    http://www.aunet.org/thaths/    Lead Indentured Slave

----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to