summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use an MD5 checksum to test for file changes; the previous methodSheldon Hearn2000-04-122-3/+10
| | | | | | | | | of using file mtimes could result in chpasss(1) erroneously detecting that no changes were made for non-interactive edits. PR: 4238 Reported by: Jens Schweikhardt <schweikh@noc.dfn.de> Submitted by: Daniel Hagan <dhagan@cs.vt.edu>
* Un-botch my botched reduction in permitted characters in the permittedMark Newton2000-03-141-1/+1
| | | | | | | username check which resulted from my attempt to expand them. PR: bin/17372 Reviewed by: sheldonh
* Fix the case where username validity test would incorrectly fail ifMark Newton2000-03-141-1/+1
| | | | | | the specified username contained uppercase alphabetics. PR: bin/17372
* Fix various unsigned vs signed errors that caused problems with uidsPaul Richards2000-03-091-5/+14
| | | | | | | and gids bigger than 16 bits. Added checks for uids and gids that are bigger than 32 bits. Approved by: jkh (partly, this fix is bigger than I first intended)
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-061-1/+2
|
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-022-2/+4
|
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-013-9/+18
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-10/+20
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Use a more conventional copyright message.Peter Wemm2000-01-261-9/+14
|
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-251-0/+3
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Portability fixes for other bsd4.4 derivatives.David Nugent2000-01-156-20/+33
|
* Connect fparseln(3) for mailwrapper(8)Peter Wemm1999-12-291-0/+10
|
* Extra sanity checks in information from file edited by user. ThisWarner Losh1999-12-211-16/+16
| | | | | | | precludes using chfn, et al, to generate a divot in /etc. Submitted by: Lukasz Luzar Forgotten about for months by: imp
* Revert the libcrypt/libmd stuff back to how it was. This should not havePeter Wemm1999-12-182-4/+4
| | | | | | | | happened as it was working around problems elsewhere (ie: binutils/ld not doing the right thing according to the ELF design). libcrypt has been adjusted to not need the runtime -lmd. It's still not quite right (ld is supposed to work damnit) but at least it doesn't impact all the users of libcrypt in Marcel's cross-build model.
* Document -e flag.Alexey Zelkin1999-12-171-0/+14
| | | | | PR: docs/14936 Submitted by: Stephen J. Roznowski <sjr@home.com>
* 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
|