summaryrefslogtreecommitdiffstats
path: root/pw
Commit message (Collapse)AuthorAgeFilesLines
* Fix inappropriate use of .Ql macro.Joseph Koshy1998-09-181-2/+2
| | | | | PR: docs/7905 Submitted by: kuma@jp.freebsd.org
* The `group{del,mod,show}' take require a '[group|gid]' argument.Joseph Koshy1998-08-311-1/+4
| | | | PR: docs/7788
* - On second thought, attempt to get the read-only lock, but don'tNate Williams1998-08-041-1/+16
| | | | | | | consider it a exit failure if it doesn't work. This means that root processes can safely get the lock, but normal processes can still use the 'pw' utility to get information (which may change out from under them.)
* - Removed read-only lock from 'pw'. This removes portions of the FIXNate Williams1998-08-041-22/+1
| | | | | | | | from PR/6787, but allow non-root users to use pw to get password information. However, this should be safe since the fixes for disallowing multiple instances from modifying the DB are still intact. Bug noted by: dima@best.net (Dima Ruban)
* Fix race condition in pw caused by multiple instances of pwd_mkdb beingNate Williams1998-07-163-7/+39
| | | | | | | | | | | | | | | | | run at the same time. Notes: The fileupdate function is still somewhat broken. Instead of returning a failure code if it can't modify the original file it renames the .new file and continues as though nothing is wrong. This will cause the lock on the original file to be lost and could lead to a similar race condition. I left that portion of the code alone since I feel that the maintainer of the code would have a better concept of how he wants to handle errors in that function than I do. PR: bin/6787 Submitted by: Craig Spannring <cts@internetcds.com>
* .Nm pw -> .Nm.Philippe Charnier1998-03-231-2/+2
|
* Overhaul this manpage - removing typos, awkward phrasing, and addressingSteve Price1998-02-141-111/+123
| | | | | | | a few technical faults. PR: 5692 Submitted by: dannyman@arh0300.urh.uiuc.edu
* pwd_mkdb option '-c' was renamed to -C some weeks ago.Wolfram Schneider1998-02-111-4/+4
| | | | | PR: bin/5715 Submitted by: dannyman <dannyman@arh0300.urh.uiuc.edu>
* Use consistent spelling,Tim Vanderhoek1997-12-251-2/+2
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* Use err(3) instead of local redefinition. Add rcsid string.Philippe Charnier1997-10-1017-216/+228
|
* Unquote default group in pw.conf.David Nugent1997-09-011-1/+2
| | | | | PR: 4365 Submitted by: "Andrew L. Moore" <alm@mclink.com>
* Fix -p switch.David Nugent1997-08-011-2/+2
|
* getuid() -> geteuid().David Nugent1997-07-171-2/+2
|
* Remove srandomdev fallback codeAndrey A. Chernov1997-06-141-5/+7
|
* Fixes skeleton directory test-it-is-a-directory logic.David Nugent1997-05-241-2/+2
| | | | | | | PR: 3666 Reviewed by: Submitted by: iaint@css.tuu.utas.edu.au Obtained from:
* Initialize RNG only onceAndrey A. Chernov1997-03-241-23/+18
| | | | Use srandomdev() now
* Fix srandom arg according to Lite2Andrey A. Chernov1997-03-111-3/+3
|
* Typo fix 'and' -> 'an'.Daniel O'Callaghan1997-03-041-2/+2
| | | | This is a 2.2 candidate.
* Back out MAXLOGNAME fix, Bruce points that copyinstr require NULAndrey A. Chernov1997-03-031-2/+2
|
* Fix MAXLOGNAME usage, the code has wrong assumption thatAndrey A. Chernov1997-03-021-3/+3
| | | | it must be NUL terminated
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2222-22/+22
|
* Yet another formatting consistency check.David Nugent1997-02-071-1/+1
|
* Fix useage of MAXLOGNAME to include terminating NUL, by usingDavid Nugent1997-02-072-3/+12
| | | | | max(MAXLOGNAME-1,UT_NAMESIZE). Tidy up "pretty" printing format for longer usernames.
* Sort cross references.Wolfram Schneider1997-01-202-4/+4
|
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1422-22/+22
| | | | | | | | 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 rebuildingDavid Nugent1997-01-058-22/+202
| | | | | | NIS maps. Suggested by: Peter Wemm
* Remove duplicated #include.David Nugent1997-01-051-2/+1
|
* Fix reference /etc/acct/pw.conf -> /etc/pw.conf.David Nugent1997-01-051-2/+2
| | | | Pointed-Out-By: Peter Wemm.
* Implemented /home -> /usr/home symlink kludge.David Nugent1997-01-031-11/+28
| | | | | If home basedir would be created in the root partition, create it under /usr instead, and symlink /basedir -> /usr/basedir.
* 1) Base home directory is created if it does not already exist ifDavid Nugent1996-12-301-35/+65
| | | | | | | | useradd -m or useradd -D -b are used. 2) Hyphen allowed in username if not first character. Fix trivial bug in error fmt string. 3) /etc/skeykeys updating changed to do 'inplace' update, commenting out a username rather than removing it completely.
* Correct file modes on updated /etc/skeykeys.David Nugent1996-12-231-2/+2
|
* 1) 200 users per group limitation removed and pwDavid Nugent1996-12-219-290/+472
| | | | | | | 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.
* Bugfix (cosmetic) for output of generated passwords.David Nugent1996-12-201-3/+3
|
* Allow 8-bit characters in the passwd gecos field, and adds a paragraphDavid Nugent1996-12-194-16/+37
| | | | | to the mangpage explaining the consequences (to be updated at a later date after login class conf support is added).
* Changes to password generator: fallback to MD5 generator disabledDavid Nugent1996-12-172-35/+70
| | | | | | (/dev/urandom used by default under FreeBSD), and implemented a "portable" but less secure generator for other systems. Add display of expiry/password change dates in -P user display.
* Submitted by: proff@iq.orgDavid Nugent1996-12-171-2/+2
| | | | Minor fix for security patch.
* Reviewed by: davidn@blaze.net.auDavid Nugent1996-12-161-4/+50
| | | | | Submitted by: proff@iq.org Security patch for better random password generation.
* Update from David, reflecting Wolfram's wishes regarding limitation ofJoerg Wunsch1996-12-111-5/+8
| | | | | | the allowable character set. Submitted by: David Nugent
* Merg-o-matic.Joerg Wunsch1996-12-111-13/+7
|
* Copyright update by the author, to be more in line with our sampleJoerg Wunsch1996-12-1020-219/+111
| | | | | | copyright. Submitted by: David Nugent
* Merge from the vendor-branch.Joerg Wunsch1996-12-101-56/+208
|
* Upgrade from the author, reflecting all my wishes resulting out of theJoerg Wunsch1996-12-098-127/+274
| | | | | | | | sysinstall use of this tool (plus some bug fixes). 2.2 candidate... Submitted by: David Nugent <davidn@nserver.usn.blaze.net.au>
* Minor spelling/mdoc/style fixes.Mike Pritchard1996-12-091-20/+25
|
* pw(8) -- a backend utility to manage the user and group databases.Joerg Wunsch1996-12-0921-0/+4523
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>