Subject: Re: gen usr AS root with YP
To: Paul Kranenburg <pk@cs.few.eur.nl>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-userlevel
Date: 11/24/1996 13:11:16
On Thu, 21 Nov 96 12:13:49 +0100 
 Paul Kranenburg <pk@cs.few.eur.nl> wrote:

 > I guess something like this should do the trick:
 > 
 > diff -r1.7 pwd_mkdb.c
 > 190a191,197
 > >               if(pwd.pw_name[0] == '+') {
 > >                       if (!(flags & _PASSWORD_NOUID) && pwd.pw_uid == 0)
 > >                               warnx("line %d: Superuser override in YP inclusion", cnt);
 > >                       if (!(flags & _PASSWORD_NOGID) && pwd.pw_gid == 0)
 > >                               warnx("line %d: Wheel override in YP inclusion", cnt);

Ok, to follow up... I've committed a slight variation of this patch
to pwd_mkdb(8).

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939