cancel
Showing results for 
Search instead for 
Did you mean: 

NIS

SOLVED
Go to solution
f. halili
Trusted Contributor

NIS

Hello everyone,


How can you check if a host uses NIS? How do you know which NIS server is is using? What files in the NIS server similar to a local /etc/passwd/

Thanks,
f. halili
derekh
5 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: NIS

You can use the 'ypwhich' command for your first 2 questions. If NIS is not set up you will get a message like "NIS domain name has not been set on this server".

If NIS is running then ypwhich should return the name of the NIS server it is bound to.

In NIS there is a passwd map. From the server, or any NIS client, 'ypcat passwd' will show you the contents of this map.

Robert-Jan Goossens_1
Honored Contributor

Re: NIS

Hi Frederick,

Have a look at the ypwhich manual.

# ypwhich -m

Regards,
Robert-Jan
Ganesan R
Honored Contributor

Re: NIS

Hi,

You need to look /etc/rc.config.d/namesvrs, /etc/nsswitch.conf file.

namesvrs file will have if the system is configured as NIS server or NIS client.

nsswitch.conf will have which source will use. like file or DNS or NIS

ypwhich command will show client is bound to which NIS server.

There is no equivalent file of /etc/password on NIS server. In NIS server, everything is database called maps. An NIS map is a data base built from ASCII configuration files. Maps are indexed on some field in
the data base. For example, the password data base is indexed on the user name or user ID.

Hope this helps upto some extend.
Best wishes,

Ganesh.
f. halili
Trusted Contributor

Re: NIS

Hello everyone,

Sorry for the late reply. Good to read all the responses. Sending points now....

Thanks,
f.halili
derekh
f. halili
Trusted Contributor

Re: NIS

THANKS.
derekh