History log of /freebsd-11.0-release/usr.sbin/pw/pwupd.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 303975 11-Aug-2016 gjb

Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE
cycle.

Prune svn:mergeinfo from the new branch, and rename it to RC1.

Update __FreeBSD_version.

Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and
the dvd1.iso packages population.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 286196 02-Aug-2015 bapt

Rewrite parsing subcommands arguments of pw(8)

Now each subcommands checks its arguments in a dedicated functions.

This helps improving input validation, code readability/maintainability
While here:
- Add a -y option to pw userdel/usermod so it can maintain NIS servers if
nispasswd is not defined in pw.conf(5)
- Allow pw -r <rootdir> to remove directory with userdel -r
- Fix bug when renaming a user which was not renaming the user name it groups
it is a member of.
- Only parse pw.conf(5) when needed.


# 286156 01-Aug-2015 bapt

Partial revert of r286152

More work needed on the cli validation


# 286152 01-Aug-2015 bapt

Validate expiration days and password days from commmand line and pw.conf


# 285433 12-Jul-2015 bapt

pw -R <rootdir> userdel can now cleanup installation

Rewrite rm_r to use *at function, allowing to remove home directories along with
users. only crontabs and at(1) installation are not removed

Relnotes: yes


# 285430 12-Jul-2015 bapt

Rework the home directory creation and copy or the skel content to use *at
functions

This allows to simplify the code a bit for -R by not having to keep modifying
path and also prepare the code to improve support -R in userdel

While here, add regression tests for the functionality


# 285412 11-Jul-2015 bapt

Replace custom string array with stringlist(3)


# 285408 11-Jul-2015 bapt

check the gecos format early: at the moment the -c option is parsed


# 285401 11-Jul-2015 bapt

Make a separate groupdel/userdel from the main function


# 285398 11-Jul-2015 bapt

Make separate functions to show users and groups


# 285396 11-Jul-2015 bapt

Move the quiet flag into the configuration structure


# 285318 09-Jul-2015 bapt

Do not try to set password on group if the group is added as a consequence of
of creating a user (regression from r285136)

Reported by: Fabian Keil <fk@fabiankeil.de>


# 285133 04-Jul-2015 bapt

Validate input of pw usermod -h and pwusermod -H

Push the code that set the password into a separate function to improve
readability

Add regression tests about pw usermod -h and pw usermod -H


# 284135 07-Jun-2015 bapt

Fix generating configuration file


# 284133 07-Jun-2015 bapt

Fix duplicate checking


# 284129 07-Jun-2015 bapt

In case of rename validate the length of the new name

Check early that the new name fits MAXLOGNAME and store it in pwconf


# 284124 07-Jun-2015 bapt

Handle -7 via gloval pwconf


# 284122 07-Jun-2015 bapt

Handle pretty print (-P) via global pwconf


# 284121 07-Jun-2015 bapt

Handle dryrun (-N) via global pwconf


# 284120 07-Jun-2015 bapt

Sort headers


# 284118 07-Jun-2015 bapt

Add a new global struct pwconf to store etcpath, rootdir and struct userconf

Do not add anymore -R and -V to arglist
Add an error message if both -V and -R are set in arguments


# 283961 03-Jun-2015 bapt

New pw -R rootdir option

This allows to set an alternate root directory in which the users/groups will be
manipulated

Requested by: gjb, ian
Tested by: gjb


# 283695 29-May-2015 bapt

Remove dead declaration

PR: 195928
MFC after: 2 days


# 282721 10-May-2015 bapt

Remove extendline definition
Remove now unused PWBUFSZ define


# 242349 30-Oct-2012 bapt

Teach pw(8) about how to use pw/gr API to reduce code duplication

MFC after: 2 months


# 99806 11-Jul-2002 alfred

de-__P()


# 56000 15-Jan-2000 davidn

Portability fixes for other bsd4.4 derivatives.


# 50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


# 44229 23-Feb-1999 davidn

1) Do not blindly ignore file update errors which may occur due to concurrent
updating
2) Add -V <etcdir>, which allows maintaining user/group database in alternate
locations other than /etc.


# 22997 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 20747 21-Dec-1996 davidn

1) 200 users per group limitation removed and pw
will handle lines of any length in /etc/group.
2) Fixed bug with usermod -d not updating user's home
directory.
3) Minor formatting display changes/fixes with *show -P.


# 20303 10-Dec-1996 joerg

This commit was generated by cvs2svn to compensate for changes in r20302,
which included commits to RCS files with non-trunk default branches.


# 20302 10-Dec-1996 joerg

Copyright update by the author, to be more in line with our sample
copyright.

Submitted by: David Nugent


# 20253 09-Dec-1996 joerg

pw(8) -- a backend utility to manage the user and group databases.

sysinstall's new User&group menu will use it, hence it's a 2.2
candidate despite of providing new functionality.

Submitted by: David L. Nugent, <davidn@blaze.net.au>