We have a nis server and a nis client in a domain. As part of the in-charge of a subdomain, I want to enable nis logins for only some users on a particular machine, and want to disable the rest of the users. I DO NOT have administrative access to nis master password file. Can it be done. If so, how?
e.g. machine1, all users enabled for nis login machine2, only xyz, and pqr are allowed to login machine3, abc and def are not allowed, rest all are allowed.
In short, to allow/disallow a subset of users from accessing a particular nis-client, without root/administrative privileges to the nis server.
nsswitch.conf looks like this:
#other entries before this passwd: files nis shadow: files nis group: files nis #other entries after this.
Client runs Ubuntu 10.04.(Don't flame me for this please :|) My /etc/passwd does not have a +:::::: entry, but/and all the users from nis can log in.