Does anybody know how to setup the /etc/passwd using NIS
netgroup to block the user login? Please give me some
> Hello there,
> Does anybody know how to setup the /etc/passwd using NIS
> netgroup to block the user login? Please give me some
1) edit /etc/nsswitch.conf, change
pssswd: files nis
2) Now you can limit access to the machine by using the + notations
will add everyone in the netgroup to the passwd file.
In the shadow file add:
You can also do things like override people's shells to something else
so that you can print out a nice login denied/restricted message.
After adding all your netgroups you want in add the following:
+::::::/etc/privlogin (passwd file)
+:::::: (shadow file)
Where "privlogin" is the program that simply writes out the message
John T. Douglass Phone: 208 533 7992
"A train stops at a trainstation, a bus stops
at a bustation, what happens at a workstation?"
I have a NIS Server running on Redhat Linux 7.2 & my NIS clients
include Linux, Solaris 8 & IRIX 6.5 machines.
On my NIS server, I've selected the option to merge paswd & shadow
files. Likewise for group & gshadow files.
On all NIS clients, I'm able to run NIS commands like "ypwhich" "ypcat
(mapname)" successfully. I'm also able to login to all NIS Linux
clients. But I'm unable to login to any of the Solaris & IRIX NIS
However if I login to the Solaris NIS client as root, I can do a "su
nisuser" & be in the nisuser's shell. But if I login to the Solaris
NIS client as a local normal user, I cannot do a "su nisuser"
successfully after entering the nisuser password.
In the case of IRIX NIS client, even if I login as a root/normal user,
I'm unable to do a "su nisuser" . IRIX complains about no shell.Even
if I try to set the path for the shell on the NIS master corresponding
to IRIX, it says no shell when I try to do a "su nisuser"
On all clients, the nsswitch.conf has values in the order of: file
Not sure why I'm having this problem with NIS clients on Solaris &
IRIX. I've looked around the newsgroups a lot but haven't fund a
suitable reason/solution for this.
Any advice in this regard is greatly appreciated.
8. web browser