Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: source-changes
Date: 12/24/1999 01:08:52
Module Name:	basesrc
Committed By:	agc
Date:		Fri Dec 24 09:08:52 UTC 1999

Modified Files:
	basesrc/usr.sbin/user: Makefile defs.h group.8 groupadd.8 groupdel.8
	    groupmod.8 user.8 user.c useradd.8 userdel.8 usermgmt.h usermod.8
Added Files:
	basesrc/usr.sbin/user: groupinfo.8 main.c userinfo.8

Log Message:
Add new functionality, and fix some bugs and oversights:

+ Moved all internal definitions from usermgmt.h to user.c
+ Added prototypes to usermgmt.h
+ Allow defaults to be set at build time
+ Check the effective uid is 0 if any data is to be modified
+ Check all numeric uids and gids really are numeric
+ Fix a bug (reported by lenb at sasquatch.com) where new ranges were
appended to old ranges, rather than replacing them
+ Add userinfo(8) and groupinfo(8) utilities (if EXTENSIONS is
defined), whereby user and group information can be displayed.  Add
manual pages for new utilities.  Add front-end calling from user(8)
and group(8) accordingly.
+ Make all functions visible outside the user.c file again.  User and
group manipulation may be split out into a separate shared lib in the
future
+ Split off main function into a separate main.c
+ Changed default group to be "users"
+ Changed despatch table for commands to work in a more sane manner
+ Added "default-group" target to Makefile, so that the default group
can be made easily.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 basesrc/usr.sbin/user/Makefile
cvs rdiff -r1.4 -r1.5 basesrc/usr.sbin/user/defs.h
cvs rdiff -r1.2 -r1.3 basesrc/usr.sbin/user/group.8 \
    basesrc/usr.sbin/user/groupadd.8 basesrc/usr.sbin/user/groupmod.8 \
    basesrc/usr.sbin/user/userdel.8 basesrc/usr.sbin/user/usermod.8
cvs rdiff -r1.3 -r1.4 basesrc/usr.sbin/user/groupdel.8 \
    basesrc/usr.sbin/user/user.8 basesrc/usr.sbin/user/useradd.8 \
    basesrc/usr.sbin/user/usermgmt.h
cvs rdiff -r0 -r1.1 basesrc/usr.sbin/user/groupinfo.8 \
    basesrc/usr.sbin/user/main.c basesrc/usr.sbin/user/userinfo.8
cvs rdiff -r1.8 -r1.9 basesrc/usr.sbin/user/user.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.