freebsd-skq/usr.sbin/pw
David Nugent c190a0f584 Clean up error handling in fileupdate(), which now returns 0 on success
instead of a boolean. This replicated through he front-end sub-functions
relating to add, delete, modify entries in passwd & group files
Errno is now preserved so output of errc()/warnc() will be less obfuscated
by subsequent errors when reporting the problem.

Add more intelligent error handling when attempting to modify/delete NIS
entries with no corresponding local database entry.

[MFC to stable in a couple of weeks to keep both in sync]
1999-10-26 04:27:14 +00:00
..
bitmap.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
bitmap.h $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
cpdir.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
edgroup.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
fileupd.c Clean up error handling in fileupdate(), which now returns 0 on success 1999-10-26 04:27:14 +00:00
grupd.c Clean up error handling in fileupdate(), which now returns 0 on success 1999-10-26 04:27:14 +00:00
Makefile $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
psdate.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
psdate.h $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw_conf.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw_group.c Clean up error handling in fileupdate(), which now returns 0 on success 1999-10-26 04:27:14 +00:00
pw_log.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw_nis.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw_user.c Clean up error handling in fileupdate(), which now returns 0 on success 1999-10-26 04:27:14 +00:00
pw_vpw.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw.8 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw.conf.5 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pw.h $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
pwupd.c Clean up error handling in fileupdate(), which now returns 0 on success 1999-10-26 04:27:14 +00:00
pwupd.h $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
README $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
rm_r.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00

pw is a command-line driven passwd/group editor utility that provides
an easy and safe means of modifying of any/all fields in the system
password files, and has an add, modify and delete mode for user and
group records. Command line options have been fashioned to be similar
to those used by the Sun/shadow commands: useradd, usermod, userdel,
groupadd, groupmod, groupdel, but combines all operations within the
single command `pw'.

User add mode also provides a means of easily setting system useradd
defaults (see pw.conf.5), so that adding a user is as easy as issuing
the command "pw useradd <loginid>". Creation of a unique primary
group for each user and automatic memberhip in secondary groups
is fully supported.

This program may be FreeBSD specific, but should be trivial to port to
other bsd4.4 variants.

Author and maintainer: David L. Nugent, <davidn@blaze.net.au>

$FreeBSD$