summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Do not accept empty user names.Wolfram Schneider1997-09-201-2/+2
|
* Add manpage links ypchpass.1, ypchfn.1, ypchsh.1Wolfram Schneider1997-09-131-0/+3
|
* The parameters to logwtmp should be const char'sPaul Traina1997-09-041-2/+2
|
* Unquote default group in pw.conf.David Nugent1997-09-011-1/+2
| | | | | PR: 4365 Submitted by: "Andrew L. Moore" <alm@mclink.com>
* Cosmetic changes.Philippe Charnier1997-09-012-40/+47
|
* Remove login_progok()Brian Somers1997-08-311-2/+1
| | | | Suggested by: guido
* Add full support for determining if a userBrian Somers1997-08-271-1/+2
| | | | is restricted from running a given program.
* Stop the growing list of shells if /etc/adduser.confWolfram Schneider1997-08-261-4/+4
| | | | was updated.
* Cosmetic: distinguish in diag message between rebuilding and updatingJoerg Wunsch1997-08-241-1/+2
| | | | | | | the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao)
* Implement canonical locking protocolAndrey A. Chernov1997-08-101-2/+4
| | | | Suggested by: joerg
* Fix -p switch.David Nugent1997-08-011-2/+2
|
* Nologin is also a valid 'invalid' shellPaul Traina1997-07-311-2/+2
|
* Modify passwd and chpass to use new AF_LOCAL RPC interface instead ofBill Paul1997-07-292-17/+23
| | | | old kludged-up 'yppasswd_comm' support.
* Delete dead test code.Wolfram Schneider1997-07-241-13/+1
|
* `cp -r' -> `cp -R'Wolfram Schneider1997-07-181-2/+2
| | | | Option -r is obsolete and buggy.
* getuid() -> geteuid().David Nugent1997-07-171-2/+2
|
* 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
|