Subject: Re: Where the hell is ...
To: Jan-Hinrich Fessel <oskar@zappa.unna.ping.de>
From: R. H. Wood <dwood@rhw.pic.net>
List: current-users
Date: 09/10/1995 16:26:38
According to Jan-Hinrich Fessel:
> 
> I am desparately looking fort the definition of _PASSWORD_NOUID and friends:
> find /usr/src -type f -xdev | xargs grep PASSWORD_NOUID
> /usr/src/lib/libc/gen/getpwent.c:               if(!(__ypflags & _PASSWORD_NOUID))
> /usr/src/lib/libc/gen/getpwent.c:               _pw_flags = _PASSWORD_NOUID|_PASSWORD_NOGID;      /* default */
> /usr/src/usr.sbin/pwd_mkdb/pw_scan.c:           *flags |= _PASSWORD_NOUID;
> 24.2u 78.0s 16:30.98 10.3% 0+0k 60765+4044io 0pf+0w
> 
> I assume it is somewhere in the yp-stuff, but I cannot find it.  Is there
> any magic involved?
> 
> Gruesse
> 	Oskar
> 
Is this what you're looking for?

dwood@rhw(bash)$ find /usr/include -type f -xdev | xargs grep PASSWORD
/usr/include/pwd.h:#define      _PASSWORD_EFMT1         '_'     /* extended encryption format */
/usr/include/pwd.h:#define      _PASSWORD_LEN           128     /* max length, not counting NULL */
/usr/include/pwd.h:#define _PASSWORD_NOUID              0x01    /* flag for no specified uid. */
/usr/include/pwd.h:#define _PASSWORD_NOGID              0x02    /* flag for no specified gid. */
/usr/include/pwd.h:#define _PASSWORD_NOCHG              0x04    /* flag for no specified change. */
/usr/include/pwd.h:#define _PASSWORD_NOEXP              0x08    /* flag for no specified expire. */


-- dick __ __//___________________________________________________________
Richard H. \X/ood                                        dwood@rhw.pic.net
246 Bancroft Drive,     Garland,  TX   75040    USA        +1 214 530 2595