summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r302778asomers2016-09-121-0/+1
| | | | | | | | | | | | | | | | | | | | | pw should sanitize the argument of -w. Otherwise, it will silently disable the login for the selected account if the argument is unrecognizable. usr.sbin/pw/pw.h usr.sbin/pw/pw_conf.c usr.sbin/pw/pw_user.c Use separate rules to validate boolean parameters and passwd parameters. Error out if a password parameter cannot be parsed. usr.sbin/pw/tests/Makefile usr.sbin/pw/tests/crypt.c usr.sbin/pw/tests/pw_useradd.sh usr.sbin/pw/tests/pw_usermod.sh Add tests for the validation. Also, enhance existing password-related tests to actually validate that the correct hash is written to master.passwd.
* MFC: r285133,r285136,r285137,r285156,r285157,r285158,r285256,r285318,r285395,bapt2015-08-231-26/+31
| | | | | | | | | | | | | | | | | | | r285396,r285398,r285401,r285403,r285405,r285406,r285408,r285409,r285411, r285412,r285413,r285415,r285418,r285430,r285433,r285434,r285442,r285948, r285984,r285985,r285989,r285996,r285997,r286045,r286047,r286066,r286150, r286151,r286152,r286154,r286155,r286156,r286157,r286173,r286196,r286197, r286198,r286199,r286200,r286201,r286202,r286203,r286204,r286210,r286211, r286217,r286218,r286258,r286259,r286341,r286775,r286982,r286986,r286991, r286993 Validate most pw inputs. Rewrite the way parsing sub arguments is made to simplify code and improve maintenability Add -y (NIS) to userdel/usermod pw userdel -r <rootdir> now deletes directories in the rootdir Only parse pw.conf when needed Reject usermod and userdel if the user concerned is not on the user database supposed to be manipulated
* MFC: r274011,r274022,r274453,r274542,r274632,r274727,r275653,r275656,r275657,bapt2015-07-031-27/+3
| | | | | | | | | | | | | | | | | | r275658,r275829,r277652,r277764,r278475,r278767,r278819,r278902,r279256, r282681,r282683,r282685,r282686,r282687,r282697,r282698,r282699,r282700, r282709,r282712,r282713,r282716,r282718,r282719,r282720,r282721,r283809, r283810,r283811,r283814,r283815,r283816,r283818,r283841,r283842,r283843, r283961,r283962,r284110,r284111,r284112,r284113,r284114,r284117,r284118, r284119,r284120,r284121,r284122,r284123,r284124,r284126,r284128,r284129, r284130,r284133,r284135,r284137,r284139,r284140,r284148,r284149,r284392 Lots of cleanup in the pw(8) code Add pw -R <rootdir> Add lots of regression tests More accurate error messages Approved by: re (kib) Sponsored by: gandi.net
* MFH: r264781, r267669, r267670bapt2014-07-061-0/+1
| | | | | | | | | | | | Simplify reading pw.conf(5) by using getline(3) Removed compatibility with pre FreeBSD 2.2 pw_mkdb command [1] Fix some broken indentattion [1] Fix changing the username [2] PR: 189172 [1], 189173 [2] Submitted by: fullermd@over-yonder.net [1][2]
* Teach pw(8) about how to use pw/gr API to reduce code duplicationbapt2012-10-301-9/+0
| | | | MFC after: 2 months
* Stop hard-coding default directory mode as 0777.jkim2011-03-081-0/+1
|
* Add home directory creation mode to pw.conf(5) and be a bitle2007-03-301-0/+1
| | | | more specific about the effect of the current umask on -M.
* The variable `arglist' has internal linkage in pw.c, don't declare it as externstefanf2005-02-101-1/+1
| | | | here.
* Fix a harmless format string bogon and mark a function as __printflike().kris2001-07-051-1/+1
| | | | | | | There is still one instance of non-constant format string use inside that function, but it's hard to fix. MFC after: 1 week
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Add new functionality "lock" and "unlock" to provide a simple passworddavidn1999-10-261-0/+2
| | | | | | locking mechanism for users. This works by prepending the string "*LOCKED*" to the password field in master.passwd to prevent successful decoding.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* 1) Do not blindly ignore file update errors which may occur due to concurrentdavidn1999-02-231-1/+3
| | | | | | updating 2) Add -V <etcdir>, which allows maintaining user/group database in alternate locations other than /etc.
* Use err(3) instead of local redefinition. Add rcsid string.charnier1997-10-101-2/+1
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Adds optional NIS passwd file updating and optionally rebuildingdavidn1997-01-051-1/+6
| | | | | | NIS maps. Suggested by: Peter Wemm
* 1) 200 users per group limitation removed and pwdavidn1996-12-211-3/+2
| | | | | | | 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.
* Allow 8-bit characters in the passwd gecos field, and adds a paragraphdavidn1996-12-191-1/+2
| | | | | to the mangpage explaining the consequences (to be updated at a later date after login class conf support is added).
* Copyright update by the author, to be more in line with our samplejoerg1996-12-101-12/+6
| | | | | | copyright. Submitted by: David Nugent
* Upgrade from the author, reflecting all my wishes resulting out of thejoerg1996-12-091-15/+2
| | | | | | | | sysinstall use of this tool (plus some bug fixes). 2.2 candidate... Submitted by: David Nugent <davidn@nserver.usn.blaze.net.au>
* pw(8) -- a backend utility to manage the user and group databases.joerg1996-12-091-0/+142
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>
OpenPOWER on IntegriCloud