On Apr 4, 6:15 am, "Raghavendra" wrote:

> How can we restrict who logs in to a specific machine in the NIS on
> solaris 7 or solaris 8.
>
> All the solutions so far I found on the net seem to be : remove the +
> entry in passwd file and add -user1 or +user1 entry. This doesnt seem
> to work.


Check your /etc/nsswitch.conf. It should contain something like

passwd_compat: nis
passwd: compat

Also make sure that for every entry in /etc/passwd there is a
corresponding entry in /etc/shadow.

Othmar