summaryrefslogtreecommitdiffstats
path: root/pw/pwupd.h
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite parsing subcommands arguments of pw(8)Baptiste Daroussin2015-08-021-15/+2
| | | | | | | | | | | | | 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.
* Partial revert of r286152Baptiste Daroussin2015-08-011-2/+0
| | | | More work needed on the cli validation
* Validate expiration days and password days from commmand line and pw.confBaptiste Daroussin2015-08-011-0/+2
|
* pw -R <rootdir> userdel can now cleanup installationBaptiste Daroussin2015-07-121-1/+1
| | | | | | | 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
* Rework the home directory creation and copy or the skel content to use *atBaptiste Daroussin2015-07-121-1/+3
| | | | | | | | | 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
* Replace custom string array with stringlist(3)Baptiste Daroussin2015-07-111-21/+20
|
* check the gecos format early: at the moment the -c option is parsedBaptiste Daroussin2015-07-111-0/+1
|
* Make a separate groupdel/userdel from the main functionBaptiste Daroussin2015-07-111-0/+1
|
* Make separate functions to show users and groupsBaptiste Daroussin2015-07-111-0/+2
|
* Move the quiet flag into the configuration structureBaptiste Daroussin2015-07-111-0/+1
|
* Do not try to set password on group if the group is added as a consequence ofBaptiste Daroussin2015-07-091-0/+1
| | | | | | of creating a user (regression from r285136) Reported by: Fabian Keil <fk@fabiankeil.de>
* Validate input of pw usermod -h and pwusermod -HBaptiste Daroussin2015-07-041-0/+2
| | | | | | | 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
* Fix generating configuration fileBaptiste Daroussin2015-06-071-0/+1
|
* Fix duplicate checkingBaptiste Daroussin2015-06-071-0/+1
|
* In case of rename validate the length of the new nameBaptiste Daroussin2015-06-071-0/+1
| | | | Check early that the new name fits MAXLOGNAME and store it in pwconf
* Handle -7 via gloval pwconfBaptiste Daroussin2015-06-071-0/+1
|
* Handle pretty print (-P) via global pwconfBaptiste Daroussin2015-06-071-0/+1
|
* Handle dryrun (-N) via global pwconfBaptiste Daroussin2015-06-071-0/+2
|
* Sort headersBaptiste Daroussin2015-06-071-2/+2
|
* Add a new global struct pwconf to store etcpath, rootdir and struct userconfBaptiste Daroussin2015-06-071-4/+32
| | | | | Do not add anymore -R and -V to arglist Add an error message if both -V and -R are set in arguments
* New pw -R rootdir optionBaptiste Daroussin2015-06-031-0/+4
| | | | | | | | This allows to set an alternate root directory in which the users/groups will be manipulated Requested by: gjb, ian Tested by: gjb
* Remove dead declarationBaptiste Daroussin2015-05-291-1/+0
| | | | | PR: 195928 MFC after: 2 days
* Remove extendline definitionBaptiste Daroussin2015-05-101-3/+0
| | | | Remove now unused PWBUFSZ define
* Teach pw(8) about how to use pw/gr API to reduce code duplicationBaptiste Daroussin2012-10-301-0/+121
| | | | MFC after: 2 months
* Create the altix project branch. The altix project will add supportMarcel Moolenaar2010-03-101-160/+0
| | | | | | | for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
* de-__P()Alfred Perlstein2002-07-111-42/+42
|
* Portability fixes for other bsd4.4 derivatives.David Nugent2000-01-151-5/+9
|
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
|
* 1) Do not blindly ignore file update errors which may occur due to concurrentDavid Nugent1999-02-231-4/+79
| | | | | | updating 2) Add -V <etcdir>, which allows maintaining user/group database in alternate locations other than /etc.
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | 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.
* 1) 200 users per group limitation removed and pwDavid Nugent1996-12-211-5/+7
| | | | | | | 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.
* Copyright update by the author, to be more in line with our sampleJoerg Wunsch1996-12-101-12/+6
| | | | | | copyright. Submitted by: David Nugent
* pw(8) -- a backend utility to manage the user and group databases.Joerg Wunsch1996-12-091-0/+85
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>