SUMMARY- restricting access via NIS

Lisa Weihl (lweihl@cs.bgsu.edu)
Mon, 26 Jan 1998 18:21:45 -0500

Thanks to Ian MacPhedran, Bruce Rossiter and Brian ? for such quick replies

They immediately had the answer for me (and it was also something I thought
of about 10 min after I sent the message but was out of the office and
couldn't try it).

I forgot to add the user to the /etc/shadow file also. Also Ian mentioned
the need for nsswitch.conf to look like:

passwd: compat
passwd_compat: nis

I had found that in the archives but without the addition to /etc/shadow it
wasn't working.

Thanks for the quick response, this group is great as always!

Lisa

Original post...

> Problem - I have a Solaris 2.5.1 machine setup for a class that I would
> like to restrict login to for a subset of NIS accounts, namely the list of
> students in the class and the instructors.
>
> Our NIS server is a SunOS 4.1.3 system. On the Solaris system I have set
> nsswitch.conf to passwd: compat mode and tried to add my self to the
> Solaris system in /etc/passwd as +lweihl:....etc. and it just always says
> it can't find me. Allowing general login (nsswitch.conf set to NIS) via
> NIS works just fine.
>
> Anybody have any hints on what I'm doing wrong?

******************************************************************
Lisa Weihl, System Administrator E-mail: lweihl@cs.bgsu.edu
Department of Computer Science Office: Hayes 225
Bowling Green State University Phone: (419) 372-0116
Bowling Green, Ohio 43403-0214 Fax: (419) 372-8061