Subject: Re: NIS/YP and master.passwd
To: None <devin@premier1.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-users
Date: 12/10/1998 10:58:48
On Dec 9, Devin Ganger wrote
> System info:
> NetBSD blacktower 1.3.2 NetBSD 1.3.2 (BLACKTOWER) #1: Mon Dec  7 14:10:13
> PST 1998
> staff@blacktower:/usr/src/sys/arch/i386/compile/BLACKTOWER i386
> 
> What is the correct syntax for adding + and - (NIS/YP) entries into
> master.passwd so that they actually are correctly generated in passwd?  Or
> do I need to worry about it?
> 
> I have the following three entries added at the end of master.passwd:
> 
>   +@dnsadmin:::::::::
>   +red:::::::::
>   +:*::::::::/sbin/nologin
> 
> and here is what they look like in /etc/passwd:
> 
>   +@dnsadmin:*:0:0:::
>   +red:*:0:0:::
>   +:*:0:0:::/sbin/nologin
> 
> This is bad, since this is in effect saying that red or anyone in the
> dnsadmin netgroup who logs in will have their UID/GID overridden and be
> root.

I don't know why it does this, but it's not a problem. I have the same
thing on my box here, and when I log in I'm not root. The only thing
is which matters is what's in /etc/master.passwd.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--