SUMMARY: Restricting NIS logins on Solaris 2

Ian Camm (ian.camm@sse.eu.sony.co.jp)
Wed, 26 Nov 1997 17:09:42 +0000 (GMT)

Well my memory was completely wrong and I should have RTFM'd the man page on
nsswitch.conf.

You change the passwd line in /etc/nsswitch.conf to compat, add +(or -)username
to /etc/passwd and then run pwconv.

Thanks to following (and anyone whos' reply I have not yet received):-

"K.Ravi" <RAVKRISH.IN.oracle.com.ofcmail@in.oracle.com>
Leo Crombach <lcrombach@tropel.com>
djohnson@nbserv2.dseg.ti.com (Danny Johnson)
Matthew Stier <Matthew.Stier@tddny.fujitsu.com>
John Post <johnp@vsl.com>
carlo@hub.eng.wayne.edu (Carlo Musante)
Peter Utama" <putama@ect.enron.com>
Casper Dik <casper@holland.Sun.COM>
Jafar Shameem <Jafar.Shameem@East.Sun.COM>
Rick Reineman <rick@lunger.llnl.gov>

Cheers,
Ian

----- Begin Included Message -----

>From icamm Wed Nov 26 10:29:56 1997
To: sun-managers@ra.mcs.anl.gov
Subject: Restricting NIS logins on Solaris 2

Dear Sun Managers,

I have looked through the FAQ and cannot see the answer to this and, if my
memory serves me correctly, I don't think it is possible but if anyone knows
how to do it they'll be on this list.

Is there any way to restrict access to a limited set of NIS user accounts under
Solaris 2.5.1?

In SunOS 4.x you could do this by adding

+username::0:0:::
+:*:0:0:::

to the bottom of the /etc/passwd file (instead of +::0:0:::).

Cheers,
Ian

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ian Camm Tel: +44 1256 388711
Senior Systems Administrator Fax: +44 1256 388703
Sony Semiconductor Europe Ltd Email: ian.camm@sse.eu.sony.co.jp
Design Centre
The Crescent, Jays Close
Basingstoke, Hampshire
RG22 4DE, UK
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

----- End Included Message -----