Path: utzoo!utgpu!watmath!uunet!labrea!bloom-beacon!mit-eddie!andante!att!mtuxo!mtgzy!mtgzz!dwex From: dwex@mtgzz.att.com (d.e.wexelblat) Newsgroups: unix-pc.general Subject: Re: /etc/pwcntl on the 3B1 (3.51), anyone? Keywords: pwcntl login lastlog Message-ID: <4736@mtgzz.att.com> Date: 7 Dec 88 13:29:49 GMT References: <7059@chinet.chi.il.us> <5439@cbmvax.UUCP> Reply-To: dwex@mtgzz.UUCP (d.e.wexelblat) Organization: AT&T, Middletown NJ Lines: 57 In article <5439@cbmvax.UUCP> ditto@cbmvax.UUCP (Michael "Ford" Ditto) writes: >In article <7059@chinet.chi.il.us> ignatz@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@kenobi.cts.com >- The Unix Programmer's Manual, ...!sdcsvax!crash!elgar!ford > 2nd Edition, June, 1972. ditto@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@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