[unix-pc.general] pwcntl utility posted to unix-pc.sources

ignatz@chinet.chi.il.us (Dave Ihnat) (12/17/88)

Well, I believe it's complete enough for posting, so here' lookin' at you...
'pwcntl' is a utility for the Unix PC that allows you to:

-Produce an 80-column report of activity recorded in the /etc/pwcntl file.
 This may be sorted by login name, by date of last login, or left in file order.
 You may also elect to only report on 'bad' logins--i.e., login names that
 aren't on the system, or have recorded user IDs that don't match the
 /etc/passwd value for that login.
 
-Interactively peruse the file.  This is a full-screen interface allowing you
 to position yourself within the file, and offering indicators when bad records
 are encountered.

-Interactively update the file.  Record deletion, ID correction, and space
 recalculation are supported.

-Global space recalculation for all recorded login IDs in the file.  This may
 be selected either by itself (i.e., a cron job), or as a precursor to a dump
 or interactive session.

There is a makefile, and man pages for both the utility and the header file.
It was developed under 3.51, but I have no reason to believe it won't work on
at least 3.50, and probably earlier versions of Unix on the PC.

Please let me know of any enhancements, bugs, fixes, etc.  Route Email to me
as ignatz@homebru.chi.il.us.

	Dave Ihnat
	Analysts International Corp.

ignatz@chinet.chi.il.us (Dave Ihnat) (12/19/88)

Well, I always thought I wouldn't do it, and I did.  In a major revamp the
day I posted the source, I managed to leave out a line of code in 'pwcntl'
that will cause the '-c' (space recalculate) option to loop forever.  *sigh*

HOWEVER, all isn't bad.  I did some other mods, particularly allowing it to
really be run from cron instead of defaulting to screen examination after a
space recalculate, and allowing a list of exempt users for the recalculate
(i.e., do you really want all your uucp access logins to recalc for
/usr/spool/uucppublic?)

Please get the new package from unix-pc.sources and discard the old.  It was
small enough, and new enough, that a patch file isn't necessary at this point.

Sorry, but you get what you paid for...

	-Dave Ihnat