/etc/pwcntl on the 3B1 (3.51), anyone?
d.e.wexelblat
dwex at mtgzz.att.com
Wed Dec 7 23:29:49 AEST 1988
In article <5439 at cbmvax.UUCP> ditto at cbmvax.UUCP (Michael "Ford" Ditto) writes:
>In article <7059 at chinet.chi.il.us> ignatz at chinet.chi.il.us (Dave Ihnat) writes:
>>Before I waste my time re-inventing the wheel, I guess I'll ask here.
> [ ... ]
>>Has someone else taken this file apart? If not, it shouldn't be too
>>outrageous, but I'd prefer not to duplicate effort.
>
[ ... ]
>
> struct pwcntl
> {
> char name[8]; /* name entered at login: */
> int uid; /* seems to be garbage for failed logins */
> char flag; /* always 'Y' or 'N', what does it mean? */
> /* char pad; */
> long last_login; /* last login attempt */
> long first_login; /* time when this entry was created */
> long unknown; /* always zero, what does it mean? */
> }; /* 26 bytes total */
>
>Has anyone ever seen this file on anything other than a Unix PC?
>Anyone with further observations/conclusions, please post!
>--
> -=] Ford [=-
>
>"The number of Unix installations (In Real Life: Mike Ditto)
>has grown to 10, with more expected." ford at kenobi.cts.com
>- The Unix Programmer's Manual, ...!sdcsvax!crash!elgar!ford
> 2nd Edition, June, 1972. ditto at cbmvax.commodore.com
This file is used by the 'install' user's 'add user' (or whatever it's
called) command. The flag field is for the 'EXPERT' flag (shows up on
the menu. The first_login field will be zero if the user is created through
the menu, and gets set when the user first logs in. The unknown field
is (I think) the disk space used by that user, and gets filled in when you
tell UA to run whatever to find disk usage (this also shows up on the
add user menu). I decoded this file a while ago, since I needed to write
a script to create a bunch of users, but still have things look OK to UA.
If UA isn't used, I don't think this file is necessary, or relevant.
--David Wexelblat dwex at mtgzz.att.com
AT&T Bell Laboratories ...!att!mtgzz!dwex
200 Laurel Ave - 4B-421
Middletown, NJ 07748
stupid
inews
fodder
stupid
inews
fodder
stupid
inews
fodder
More information about the Unix-pc.general
mailing list