Operating System - HP-UX
1822562 Members
3228 Online
109642 Solutions
New Discussion юеВ

how can i know who use nis server to login the the system?is there nis server log?

 
SOLVED
Go to solution

how can i know who use nis server to login the the system?is there nis server log?

is nis master server have a log to know this?
2 REPLIES 2
Con O'Kelly
Honored Contributor
Solution

Re: how can i know who use nis server to login the the system?is there nis server log?

Hi

Its a while since i have used NIS but from what I remember /etc/nsswitch.conf file determines how NIS behaves.

If user has an entry in /etc/passwd then user is authenticated locally. If there is no entry in the file then NIS passwd map is used.

I'm not aware of any log file on master server.

To determine which users are using NIS to login, then you need to check /etc/nsswicth.conf. If it has an entry for passwd as follows:
passwd files nis

then any user listed in local /etc/passwd will not use NIS to login.
Any user not in local /etc/passwd will use NIS maps to authenticate and login.

Hope that helps.

Cheers
Con

A. Clay Stephenson
Acclaimed Contributor

Re: how can i know who use nis server to login the the system?is there nis server log?

The rules for nis are quite simple. Look in the client's /etc/passwd file. At the end of the file there should be at least one strange looking entry with a '+' where the login normally goes. Any user that is defined in the local /etc/passwd before the '+' file gets her login information from the local /etc/passwd file but any users not locally defined use the NIS map. It's actually a little more complicated because if locally defined passwd field are left undefined they can be picked up from NIS while using the parts of the entry that are locally defined.

There is no log that says this user was served by this server.
If it ain't broke, I can fix that.