summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove addgroup/rmgroup -- they are completely replaced by pw(1).Paul Traina1997-07-055-362/+3
| | | | | Adduser/rmuser stay for now until we get a good user-friendly front-end for pw.
* Free a malloc'ed variable before exiting. Compute line number when parsingPhilippe Charnier1997-06-252-5/+12
| | | | | input file, it helps finding errors. Obtained from: OpenBSD.
* Fix a minor nit in the .Dd macro invocation so thatSteve Price1997-06-233-6/+6
| | | | the revision date is displayed correctly.
* Remove srandomdev fallback codeAndrey A. Chernov1997-06-141-5/+7
|
* Add "break" inadvertently removed in previous update.David Nugent1997-06-131-1/+3
| | | | | PR: 3820 Submitted by: Joseph Stein <joes@spiritone.com>
* 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:
* Now I really understand the reason for the style.9 rule about not havingPeter Wemm1997-05-191-14/+14
| | | | | | | visible type names in prototypes in user space headers. libutil.h generates warnings with -Wall over the use of "const char *ttyname". It's lucky it wasn't a #define conflict. Is a single '_' prefix acceptable? or does it need to be two?
* For non-root uids, consider root-owned files also 'secure' unless otherwiseDavid Nugent1997-05-151-2/+2
| | | | disqualified.
* Make uu_* const correct.Brian Somers1997-05-121-4/+4
| | | | Suggested by: joerg
* MF2.2: bugfix in arrayize().David Nugent1997-05-111-2/+2
|
* Summary of login.conf support changes:David Nugent1997-05-104-362/+656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Incorporated BSDI code and enhancements, better logging for error checking (which has been shown to be a problem, and is therefore justified, imho); also some minor things we were missing, including better quad_t math, which checks for under/overflows. o setusercontext() now allows user resource limit overrides, but does this AFTER dropping root privs, to restrict the user to droping hard limits and set soft limits within the kernel's allowed user limits. o umask() only set once, and only if requested. o add _secure_path(), and use in login.conf to guard against symlinks etc. and non-root owned or non-user owned files being used. Derived from BSDI contributed code. o revamped authentication code to BSDI's latest api, which includes deleting authenticate() and adding auth_check() and a few other functions. This is still marked as depecated in BSDI, but is included for completeness. No other source in the tree uses this anyway, so it is now bracketed with #ifdef LOGIN_CAP_AUTH which is by default not defined. Only auth_checknologin() and auth_cat() are actually used in module login_auth.c. o AUTH_NONE definition removed (collided with other includes in the tree). [bde] o BSDI's login_getclass() now accepts a char *classname parameter rather than struct passwd *pwd. We now do likewise, but added login_getpwclass() for (sort of) backwards compatiblity, namely because we handle root as a special case for the default class. This will require quite a few changes elsewhere in the source tree. o We no longer pretend to support rlim_t as a long type. o Revised code formatting to be more bsd-ish style.
* Move login_cap.h from src/include for easier maintenance withDavid Nugent1997-05-101-0/+141
| | | | related files.
* Change "no" answer to "default" for login class, because "no" classAndrey A. Chernov1997-05-011-3/+3
| | | | can exists and "default" class is really equal to empty class.
* Allow "no" answer on login class prompt override non-emptyAndrey A. Chernov1997-05-011-2/+3
| | | | /etc/adduser.conf defaultclass with empty one
* 1. Deal with login classes nowAndrey A. Chernov1997-05-012-14/+54
| | | | | 2. Turn on send_message by default for security reasons (mailbox must be pre-created)
* Variable name typo.Wolfram Schneider1997-04-021-2/+2
| | | | | Reviewed by: Guy Helmer <ghelmer@cs.iastate.edu Submitted by: Paul Sandys <myj@nyct.net>
* Remove the syslog stuff, and allow various return valuesBrian Somers1997-03-311-1/+9
| | | | | | | | | in uu_lock(). Add uu_lockerr() for turning the results of uu_lock into something printable. Remove bogus section in man page about race conditions allowing both processes to get the lock. Include libutil.h and use uu_lock() correctly where it should. Suggested by: ache@freebsd.org
* Move uucplock into libutil and create a manual page.Brian Somers1997-03-301-1/+3
|
* Fix for PR #3141: check for NULL before strdup()ing pw->pw_class.Bill Paul1997-03-291-2/+3
| | | | | | | | | (I'm not sure why this happens, though I suspect it may be because the server is configured with only passwd maps instead of both passwd and master.passwd maps. This is allowed, but I think in this case pw_class is left NULL, hence the problem.) Also applied similar patch to chpass/pw_yp.c just for paranoia's sake.
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-3/+3
| | | | posix standard on the topic.
* 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
|
* Support comments in password database (/etc/master.passwd).Wolfram Schneider1997-03-091-1/+9
| | | | | Comments in group database (/etc/group) are currently not supported - adduser silently delete blank lines and comments.
* Cleaned up some messages, added a check to remove a leftover popd fileWolfram Schneider1997-03-082-50/+227
| | | | | | | | | | from /var/mail, added a routine to delete the removed user's files from /tmp, /var/tmp, & /var/tmp/vi.recover, and added code to kill any running processes owned by the removed user). I've also added a flag for non-interactive execution, cleaned up the man page, and adjusted my address. Submitted by: ghelmer@cs.iastate.edu (Guy Helmer)
* 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
* "infinity" check was missed from login_getcapsize(), add itAndrey A. Chernov1997-02-271-1/+7
| | | | One manifestation of this bug: all networking users have coredumpsize=0
* If an administrator somehow manages to break the hardlinksMike Pritchard1997-02-261-2/+4
| | | | | | | | | | | | on chpass & passwd and turn the links into individual files with the schg flag set, make install will fail to install all of the proper links. Fixed by removing the schg flag on all of the links before installing. Closes PR# 2040. Submitted by: Ph. Charnier <charnier@xp11.frmug.org>
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
|
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2231-31/+31
|
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
|
* 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.
* Fix free()ing block twice, remove unused function.David Nugent1997-01-301-15/+1
|
* Fix typo .->, for default separators in login_getcaplist().David Nugent1997-01-291-1/+2
|
* Completed fixes with login_getcapsize().David Nugent1997-01-291-1/+2
|
* 1) Fixed bug in free()ing internal string/array whereDavid Nugent1997-01-291-24/+32
| | | | | | | allocated size not reset to 0 causing NULL dereference on call after login_close(). 2) Modify login_capsize() behaviour to match manpage, allow concatenated sizes; ie. 10m500k
* Sort cross references.Wolfram Schneider1997-01-206-9/+9
|
* Sort cross references.Wolfram Schneider1997-01-151-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1436-36/+36
| | | | | | | | 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.
* Various bugfixes.David Nugent1997-01-071-7/+11
|
* Commit the right version this time. :-)David Nugent1997-01-071-2/+2
|
* Fix for login_getclass(NULL) case.David Nugent1997-01-071-4/+6
|
* 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.
* Library functions relating to the login class capabilities database,David Nugent1997-01-041-0/+564
| | | | | including manpages. See also login_cap.h.
* 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.