summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move setproctitle() from libutil to libc (after a repo-copy)Brian Somers2000-09-021-1/+0
| | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter
* Add weak symbol pragma for crypt_set_format().Jeroen Ruigrok van der Werven2000-08-231-0/+6
| | | | Approved by: green
* Stick login_setcryptfmt() in its own file to make pulling in ofBrian Feldman2000-08-232-13/+44
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-08-224-3/+36
| | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
* Complete migration of aliases file to /etc/mail/aliases.Gregory Neil Shapiro2000-08-131-1/+1
| | | | | The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster have been contacted so those may be updated as well.
* Move test for -w flag outside of the code dealing with -D (defaults).David Nugent2000-07-201-2/+2
| | | | | | | This should cause -w's argument not to be ignored in the usermod case, so it will affect modification of the user's password instead of using the pw.conf (or internal default=no '*') password method. PR: bin/11168
* Allow -g with an empty argument in the -D case. This allows -g "" to setDavid Nugent2000-07-201-5/+8
| | | | | no default group (and thus fall back to user-based groups instead). PR: bin/5717
* Fix another missed case where usermod would not set the "modified" flag:David Nugent2000-07-201-3/+6
| | | | | | -h - to set no password. But only mark modified if the account is not already locked (i.e. first char of crypt password field is '*'). PR: bin/19999
* Catch up to the fact that we now have tcsh in the tree.David Nugent2000-07-161-1/+2
|
* Support propogation of file flags when building a homedir from theDavid Nugent2000-07-131-6/+17
| | | | | | | skeleton directory. sprintf() -> snprintf() cleanup. PR: bin/8756 Submitted by: "Nickolay N. Dudorov" <nnd@itfs.nsk.su>
* Don't call warn() without a format string.Kris Kennaway2000-07-121-1/+1
|
* Fix breakage introduced by bypassing update for additional 'mod'David Nugent2000-07-031-0/+1
| | | | | | | functionality when nothing had actually changed; -d changes would not set the 'something had changed flag'. Actually test for a change in homedir. PR: bin/19649
* Don't dereference NULL in the userdel case.David Nugent2000-06-261-1/+1
|
* Localize ctype too.Andrey A. Chernov2000-06-242-3/+3
| | | | Add weekday to showuser expired fields
* Localize time/date.Andrey A. Chernov2000-06-225-23/+27
| | | | | Use ISO 8601 date in logs. Fix wrong argument type in ctype functions.
* Fix obvious braino in assignment statement. usermod -g should work again.David Nugent2000-06-181-1/+1
| | | | | PR: 17877 Submitted by: pius@zyan.com
* Be a little more strict about handling command line args. This allows user andDavid Nugent2000-06-181-4/+6
| | | | | | group names like 'help' 'mod' 'user' 'group' etc. to work correctly without requiring the -n style invocation. PR: misc/17069
* Fix a long-standing bug in the rename case previously masked by another bugDavid Nugent2000-06-181-2/+10
| | | | just fixed in .db file updating.
* Second and hopefully final fix to .db sync when renaming a user; we must runDavid Nugent2000-06-181-4/+12
| | | | | | | a full reindex in this case to remove the old record. #ifdef -u capability since this is available on FreeBSD only. PR: bin/16418 Problem pointed out by: Masachika ISHIZUKA <ishizuka@ish.org>
* Fix db syncronization when username is changed with -l under usermod.David Nugent2000-06-061-1/+1
| | | | | | | | pw(8) was calling pwd_mkdb -u oldusername instead of newusername, so the update appears to have failed until the next full pwd_mkdb syncronization. PR: bin/16418
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-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 thatJake Burkholder2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Fix a memory leak with lc->lc_cap in login_close().Tim Vanderhoek2000-05-211-0/+1
| | | | PR: bin/17084
* 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.