summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* PR: docs/9045Matthew Dillon1998-12-131-27/+31
| | | | | | Update chpass(1) manual page. Change the definition of the class field and also reorganize the field list to match that of the /etc/master.passwd file, to avoid confusion.
* oops. Fix indentation of the 'for' loop I just added.Matthew Dillon1998-12-131-18/+18
|
* Handle the race condition where vipw may lock a password file which hasMatthew Dillon1998-12-131-6/+22
| | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence.
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-065-10/+11
|
* Since vfork() was changed to fork(), we have to pass errno back from theDag-Erling Smørgrav1998-10-201-3/+6
| | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
* Fixed printf format errors. Assume that uid_t's are representable asBruce Evans1998-10-171-2/+2
| | | | unsigned longs.
* Fixed printf format errors. Assume that time_t's are representable asBruce Evans1998-10-171-2/+2
| | | | longs.
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() orDag-Erling Smørgrav1998-10-131-3/+3
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Now take stdio.h out of files that don't require it.Jordan K. Hubbard1998-10-091-2/+1
|
* o move path in libutil.h to paths.hJordan K. Hubbard1998-10-091-2/+2
| | | | | o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface.
* Take the path spec back out.Jordan K. Hubbard1998-10-091-4/+1
|
* All these have to include stdio.h now.Jordan K. Hubbard1998-10-091-1/+2
|
* remove stdio.h include; I forgot Bruce's cardinal rule that header filesJordan K. Hubbard1998-10-081-2/+1
| | | | | | shouldn't include other ones (which, unfortunately, is also a hellish rule since he broke interfaces like sysctl this way by requiring undocumented header files to be included just in order to be able to use them now - SIGH!).
* Add a simple mechanism for reading property lists from files (whichJordan K. Hubbard1998-10-071-1/+16
| | | | | | | I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm
* Remove useless `BINOWN=root' now that it is the default.David E. O'Brien1998-09-191-2/+1
|
* Remove useless `BINOWN=root' now that it is the default.David E. O'Brien1998-09-191-1/+0
|
* Fix inappropriate use of .Ql macro.Joseph Koshy1998-09-181-2/+2
| | | | | PR: docs/7905 Submitted by: kuma@jp.freebsd.org
* Bump up the E_SHELL constant after an extra field was added, thus makingMark Murray1998-09-031-1/+1
| | | | | this refer to the wrong data. Submitted by: axl@iafrica.com (Sheldon Hearn)
* The `group{del,mod,show}' take require a '[group|gid]' argument.Joseph Koshy1998-08-311-1/+4
| | | | PR: docs/7788
* Removing -batch option from adduser. Adduser was written asWolfram Schneider1998-08-172-106/+8
| | | | | | an *interactive* command for newbies. The pw(8) does now a much better job for adding users from command line. Also, the -batch option is not well tested, buggy and unsupported.
* Submitted by: Peter Hawkins <thepish@freebsd.org>Peter Hawkins1998-08-141-5/+9
| | | | Document last mod (extended gcos)
* Submitted by: Peter Hawkins <thepish@FreeBSD.org>Peter Hawkins1998-08-143-4/+13
| | | | | | Add functionality for support for more than 4 subfields within gcos. chsh, chpass etc did not parse beyond the 4th field previously and so truncated gcos on updating the database.
* - 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>
* Correct the description of the last four fields.Steve Price1998-06-131-3/+3
| | | | | PR: 6926 Submitted by: Josh Gilliam <josh@quick.net>
* Always ask for homedir.Wolfram Schneider1998-06-071-11/+38
| | | | | PR: 6754 Submitted by: uhlar@netlab.sk
* Add missing uu_lock_txfr() prototypeAndrey A. Chernov1998-06-051-1/+2
|
* Trim a domain part for wtmp as same as showed by "netstat -r".Atsushi Murai1998-06-011-2/+2
| | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp>
* Add uu_lock_txfr() to transfer ownership of a successfulBrian Somers1998-05-281-1/+3
| | | | uu_lock() to another process.
* Fixed `make -j9' by putting generated headers in ${SRCS}. Removed bogusBruce Evans1998-04-261-10/+10
| | | | | dependencies of generated .c files on generated headers (these made `make -JN' work provided `depend' was made first). Sorted sources lists.
* .Nm pw -> .Nm.Philippe Charnier1998-03-231-2/+2
|
* Add rcsid. Correct -Wall warning.Philippe Charnier1998-03-231-1/+5
|
* MF22: Remove confusing commaTim Vanderhoek1998-03-181-2/+2
|
* Clarify the -batch arguments.Steve Price1998-02-141-1/+5
| | | | | PR: 5677 Submitted by: Adrian Filipi-Martin <adrian@virginia.edu>
* 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>
* Typo.Wolfram Schneider1998-02-021-2/+2
|
* Rename the pwd_mkdb(8) option '-c' to '-C' for better compatiblityWolfram Schneider1998-01-101-2/+2
| | | | with BSD/OS.
* Use consistent spelling,Tim Vanderhoek1997-12-251-2/+2
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* Small bugfix: store $uid_start instead hard coded value 1000Wolfram Schneider1997-12-241-2/+2
| | | | in /etc/adduser.conf.
* Removed extra (non-trailing) arg in a call to warnx().Bruce Evans1997-12-181-2/+2
|
* Typo alert.James Raynard1997-11-021-2/+2
|
* Statisize usage().Philippe Charnier1997-10-271-1/+4
|
* Staticize usage(). Cosmetics.Philippe Charnier1997-10-101-2/+5
|
* Use err(3) instead of local redefinition. Add rcsid string.Philippe Charnier1997-10-1017-216/+228
|
* Changes to support full make parallelism (-j<n>) in the worldJordan K. Hubbard1997-10-051-3/+3
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Endless loop.Wolfram Schneider1997-09-291-5/+5
| | | | | | | | | | | $ vipw [corrupt a line in editor, exit editor] pwd_mkdb: corrupted entry pwd_mkdb: at line #2 pwd_mkdb: /etc/pw.012585: Inappropriate file type or format re-edit the password file? [y]: n^D^D [hang]
* Quieten -Wall.Mark Murray1997-09-281-1/+2
|
* Do not complain about non existing shell "/nonexistent"Wolfram Schneider1997-09-201-3/+6
| | | | | | Smarter error check if a uid is already in use. Submitted by: "Eugene Radchenko" <genie@qsar.chem.msu.su>