Thank you for answers to Luca Pizzinato and Darren Dunham.
Copy of Luca's answer follows.
First, modify you passwd and group entries in /etc/nsswitch.conf on BOTH
master and clients as follows:
You can type man nsswitch.conf for more details. This syntax will let you
use netgroups in your local passwd files.
Then create for example 2 netgroups, on the first you include john and bob,
on the second only bob:
nistbladm -a name=firstnetgr user=john netgroup.org_dir
nistbladm -a name=firstnetgr user=bob netgroup.org_dir
nistbladm -a name=secondnetgr user=bob netgroup.org_dir
Then, on the master:/etc/passwd, you include the netgroup at the end
On the clients, you include the second netgroup:
Don't forget to add +firstnetgr:::::::: and +secondnetgr:::::::: to the
shadow files, and a + to all /etc/group
Done. SInce john and bob are part of firstnetgr they will login to master,
but only bob will login to the clients since only bob is part of
You can also do very nice things with netgroups: suppose you include mark to
secondnetgr. mark will login to all clients. However if you want to prevent
mark from loggin into 1 specific client, you just include this in the local
(don't forget the shadow) Since -mark comes before +secondnetgr, he's locked
out. bob will be granted access as before.
========Original question ===============
I have NIS+ master server running on a Sun box. Other Sun box I use as NIS+
client. I'd like to restrict access to client box only for certain users.
How can I do it?
For example: On master server I have accounts for users John and Bob. But I
want to enable login on client box only to user Bob. Is it possible?
Is it possible to restrict login also on NIS+ master server?
Thank in advance for your answers.
U BEFORE POSTING please READ the FAQ located at
. and the list POLICY statement located at
A To submit questions/summaries to this list send your email message to:
A To unsubscribe from this list please send an email message to:
E and in the BODY type:
R unsubscribe sun-managers
. unsubscribe sun-managers email@example.com
L To view an archive of this list please visit:
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:23 CDT