summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add libmd (or move it after libcrypt). We don't want the linker to beMarcel Moolenaar1999-12-162-4/+5
| | | | | smart because it will definitely get it wrong. This popped up during cross-linking.
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS inSheldon Hearn1999-12-022-1/+14
| | | | | | | | | | | the environment. This allows big ID warnings to be suppressed for vipw and chpass as well. Since the environment variable test is only performed for callers of pw_scan() that do not set pw_big_ids_warning, the test can still be overriden. Currently, chpass and pwd_mkdb are the only users of pw_scan() and neither of them overrides the environment variable test.
* Allow empty UIDs if we are processing NIS records. I am not entirelyEivind Eklund1999-11-221-2/+4
| | | | | | | | happy with how this end up and will re-visit the entire empty field problem, but this patch solves the NIS problem for now. Submitted by: Dan Nelson <dan@emsphone.com> PR: 14865,14984
* mdoc(7)'fyAlexey Zelkin1999-11-181-33/+40
| | | | Mostly submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
* Add to pwd_mkdb a -q option to silence warnings about large IDs. Add aSheldon Hearn1999-11-152-4/+15
| | | | | | | | | suitably ominous warning in the manual page. The diff applied is not the one provided in the attributed PR. PR: 13344 Reviewed by: bde
* Flag empty UID entries as errors (to stop typos from turning intoEivind Eklund1999-11-061-1/+6
| | | | alternate root accounts).
* mdoc(7)'fyAlexey Zelkin1999-10-301-12/+20
|
* Don't try updating the passwd file if no data has changed. This allows thingsDavid Nugent1999-10-261-39/+102
| | | | | | like "pw usermod <name> -m" to work for non-local NIS users; since no attempt is made to update the password entry, the home directory will be created and populated as expected without error.
* Add new functionality "lock" and "unlock" to provide a simple passwordDavid Nugent1999-10-264-8/+47
| | | | | | locking mechanism for users. This works by prepending the string "*LOCKED*" to the password field in master.passwd to prevent successful decoding.
* Missed statement in password update relating to the previous changeDavid Nugent1999-10-261-1/+1
| | | | to fileupdate() which prevented pwd_mkdb(1) from being run.
* Clean up error handling in fileupdate(), which now returns 0 on successDavid Nugent1999-10-265-62/+117
| | | | | | | | | | | | instead of a boolean. This replicated through he front-end sub-functions relating to add, delete, modify entries in passwd & group files Errno is now preserved so output of errc()/warnc() will be less obfuscated by subsequent errors when reporting the problem. Add more intelligent error handling when attempting to modify/delete NIS entries with no corresponding local database entry. [MFC to stable in a couple of weeks to keep both in sync]
* fix a serious bug where, on alpha, due to a an int/long type mismatch,Andrew Gallatin1999-10-201-1/+1
| | | | | the uid arg to use_yp() was getting clobbered by the call to my_yp_match(). This led to a problem where a NIS user could edit root's passwd information.
* Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional andPeter Wemm1999-09-062-3/+1
| | | | we have enough pseudo-options already.
* Back out previous commit. I mistook passing commentary from bde forSheldon Hearn1999-08-311-9/+6
| | | | | | review. Requested by: bde
* Only do a full pwd_mkdb for deletions; other operations may use the -uSheldon Hearn1999-08-301-2/+6
| | | | | | | option as an optimization. PR: 13346 Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
* Only issue a warning for the first occurrence of a UID > USHRT_MAX andSheldon Hearn1999-08-301-6/+9
| | | | | | | the first occurrence of a GID > USHRT_MAX. PR: 13344 Reviewed by: bde
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2830-30/+30
|
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
|
* $Id$ -> $FreeBSD$Peter Wemm1999-08-284-4/+4
|
* Fix a bunch of broken cross-referencesChris Costello1999-08-181-2/+2
|
* Allow comments and blank lines as advertised in passwd(5).Sheldon Hearn1999-07-292-1/+12
| | | | | PR: 12828 Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>
* Remove some more warnings.David Nugent1999-07-282-4/+6
|
* Remove references to the non-existent addgroup(8) and rmgroup(8)Nik Clayton1999-07-272-6/+2
| | | | | | | commands. PR: docs/12659 Submitted by: Mark Diekhans <markd@Grizzly.COM>
* Grammar and spelling fixesKris Kennaway1999-06-301-5/+5
| | | | Obtained from: OpenBSD
* Move call to umask(0) back into pw_util(), because the latterPierre Beyssac1999-06-291-1/+4
| | | | function is also used by chpass(1) and passwd(1).
* Force umask to 077 (instead of 000) during the edit phase, to getPierre Beyssac1999-06-261-4/+1
| | | | | | | | | | secure permissions in case the user attempts to save something to a file of his own. Move umask stuff out of pw_init() into main() for better visibility of overall umask tweaking logic. PR: misc/11797
* Add -d option to vipw(8) to allow selection of an alternative directorySheldon Hearn1999-06-261-8/+14
| | | | | | | for the password files. PR: 2703 Submitted by: jmg
* More egcs warning fixes:Warner Losh1999-04-252-3/+4
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
* oops, add pwd!=NULL check to previous fixAndrey A. Chernov1999-04-241-11/+17
|
* Switch to user UID/GID before checking/reading its ~/.login_confAndrey A. Chernov1999-04-241-1/+14
| | | | - some NFSes have root read access disabled
* Add realhostname() - a function to correctly lookupBrian Somers1999-04-061-1/+9
| | | | | a name by address and ensure that the name resolves back to the original address.
* Fix date parsing to allow '0' (none) date value.David Nugent1999-03-151-3/+2
|
* Add the ability to print user records in unix version 7 (old) format.David Nugent1999-03-022-11/+19
|
* Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().Bill Paul1999-03-011-1/+17
| | | | | | | | | | | Instead, treat the inability to retrieve a record from the server as a match failure and let things take its course. Part of the problem here is that NIS _is_ turned on, however the master server is actually not an NIS server: it's an NIS+ server. And the client is bound to an NIS+ replica server that's running in YP compat mode. The code which tries to figure out of the user is local or NIS gets confused by this.
* Fix minor nit with command line parsing for pw -V DIR action.David Nugent1999-02-231-2/+2
|
* Fix tpyo (sic) and missing 'else' (bad cut n' paste).David Nugent1999-02-231-13/+13
|
* 1) Do not blindly ignore file update errors which may occur due to concurrentDavid Nugent1999-02-2314-155/+725
| | | | | | updating 2) Add -V <etcdir>, which allows maintaining user/group database in alternate locations other than /etc.
* Change the prompt for the office location field from "Location:"Guy Helmer1999-02-233-8/+13
| | | | | | | | | | | | | | to "Office Location:" to disambiguate what is expected. Add a note to the man page to indicate that the office location and office phone fields are concatenated and printed with the heading "Office:" by finger(1). Swap the order of the home and office phone fields in the man page to match the order of the fields in the editor. If any programs interact with chpass(1) and expect "Location:" instead of "Office Location:" as the prompt, either this change will have to be reverted or the other programs will have to be changed. PR: docs/7533
* Ignore errors from chflags. This makes it possible to make installworldDag-Erling Smørgrav1999-02-141-2/+2
| | | | with DESTDIR set to an NFS-mounted file system.
* Added myself as maintainer.Wolfram Schneider1999-02-091-1/+3
|
* Don't assume a_name is a number just because the first characterDag-Erling Smørgrav1999-02-081-2/+4
| | | | | | | is a digit. PR: bin/9484 Submitted by: Matthew D. Fuller <fullermd@futuresouth.com>
* Allow two digit years 1969-2068Daniel O'Callaghan1999-01-181-3/+6
|
* Print yyyy/mm/dd in /var/log/adduser, instead of yy/mm/ddDaniel O'Callaghan1999-01-151-1/+2
| | | | Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Remove bogus file locking in main().David Nugent1999-01-081-13/+1
|
* -Clarification of last commit-Bill Fumerola1999-01-041-1/+1
| | | | | | | The char that the random letters and numbers are being pulled from is ended with a '\0'. Using sizeof() includes this '\0' in the 'pool' of possible characters. This patch decrements by one the size so we don't accidently end the new password prematurly.
* Let's make sure we're at the end of the password string before we apply a \0Bill Fumerola1999-01-021-2/+2
| | | | | | | | | and terminate it. This patch ensures passwords will be the correct length of 8, which is what is implied in the source (but not reflected in the man page). PR: bin/7817 Reviewed by: Alfred Perlstein <bright@hotjobs.com> Submitted by: Hiroshi Nishikawa <nis@pluto.dti.ne.jp>
* Fix the spelling of `FreeBSD'.Joerg Wunsch1998-12-271-2/+2
| | | | Submitted by: Peter Philipp <pjp@bsd-daemon.net>
* Declare setproctitle() as printf0-like.Bruce Evans1998-12-161-2/+2
|
* Fixed disordering of cross references in previous commit.Bruce Evans1998-12-131-3/+3
|
* Add reference to login.conf(5)Matthew Dillon1998-12-131-2/+3
|