Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-01-03 | Replace bogus use of fgetln() (which doesn't NUL-terminate strings) | Todd C. Miller | |
with fgets() (which does). Using fgetln() doesn't make a huge amount of sense since passwd entries are required to be short and mustn't contain NULs. This also fixes a bus error on sparc64 (caused by passing a pointer to an int when a pointer to size_t was expected) found by pvalchev@. Tested and OK pvalchev@ | |||
2003-12-25 | Fix multi-line string | Alexander Yurchenko | |
ok otto@ | |||
2003-12-24 | Fix bound checks for gecos field, taking into account it may contain | Otto Moerbeek | |
multiple '&'s. Resolves PR 3616. ok deraadt@ | |||
2003-12-22 | use .Fl for flag; | Jason McIntyre | |
from Franciszek Holop; | |||
2003-09-04 | clarify that user's full name (not username) generally goes in GECOS; | Jason McIntyre | |
from Jeff Ross. | |||
2003-06-15 | small mdoc fixes; | Jason McIntyre | |
ok millert@ | |||
2003-06-14 | For moduser(), only do valid_class() check when F_CLASS is set in | Todd C. Miller | |
up->u_flags. Fixes a coredump when changing/deleting an existing user introduced by my recent commit here. | |||
2003-06-10 | Check that login class exists before using it; based on a patch from | Todd C. Miller | |
Peter Werner. Closes PR 2699. | |||
2003-06-10 | o Check for fwrite() error with != 1, not <= 0 (mostly style) | Todd C. Miller | |
o Correct some error messages o More informative error when reading a line that is > LINE_MAX o When saving password, only alloc space for what is used | |||
2003-06-10 | Keep a table of password types, and their associated lengths, and | Todd C. Miller | |
check in useradd or usermod whether the given encrypted password has the correct length. Factor out time code into a function, scantime() Perform ctype(3) operations on unsigned chars. From NetBSD (agc) | |||
2003-06-10 | Use syslog(3) to log new users and groups, deletions of users and groups, | Todd C. Miller | |
and modification of user and group information. Syslog priority is LOG_INFO, facility is LOG_USER (there is no need to do this via LOG_AUTH, since the password and group files are world readable). From NetBSD (agc) | |||
2003-06-10 | Catch illegal flags and reply with usage; from NetBSD (agc) | Todd C. Miller | |
2003-06-10 | o rename login variable to login_name | Todd C. Miller | |
o remove user from supplementary groups when deleting a user and not preserving information. o add some const o check that user/group is local (not YP) before trying to change it. From NetBSD (agc) | |||
2003-06-08 | Sync man pages w/ NetBSD version | Todd C. Miller | |
2003-06-08 | Add usermgmt.conf man page. From NetBSD (grant) | Todd C. Miller | |
2003-06-08 | user -e and -f now accepts "month day year" (ala chpass(1)) and | Todd C. Miller | |
seconds-since-epoch. From NetBSD (grant). | |||
2003-06-08 | Make c_word const; from NetBSD (tron) | Todd C. Miller | |
2003-06-08 | Add check for group too long and made an invalid group a fatal error | Todd C. Miller | |
instead of just a warning which is consistent with the way an invalid user is treated. | |||
2003-06-08 | Use _PW_NAME_LEN not MAXLOGNAME since the latter does not include the NUL. | Todd C. Miller | |
2003-05-14 | Mention that without a password being specified, the account is disabled | Jason Peel | |
by default. Idea from Ross.Richardson@utas.edu.au, discussed with millert@; closes PR 3257. | |||
2003-05-13 | Don't allow usernames to begin with a dash since pwd_mkdb(8) | Todd C. Miller | |
will reject such a name; from Brian Poole | |||
2003-04-03 | The check for whether or not a group is empty was busted. Closes PR 3178. | Todd C. Miller | |
2003-03-11 | groupmod modifies groups, it doesn't add them | Ted Unangst | |
ok millert@ | |||
2003-02-14 | typos; | Jason McIntyre | |
tftpd(8): tweak and ok millert@ tokenadm(8): tweak and ok millert@ | |||
2003-01-31 | typos; | Jason McIntyre | |
eeprom(8): added .Ar to fields, removed references to sun3 sshd(8): help and ok markus@ help and ok millert@ | |||
2002-12-10 | Add 2 missing pw_abort() calls when pw_mkdb() fails and remove the | Todd C. Miller | |
void cast from pw_abort() since it is already void. From NetBSD via Brian Poole. | |||
2002-11-22 | Add some .Xr's that have been sitting in my tree | Todd C. Miller | |
2002-11-09 | yet another round of SEE ALSO fixes. | Federico G. Schwindt | |
2002-11-07 | Check for non-existent group in groupdel just like userdel; Sebastian Stark | Todd C. Miller | |
2002-11-07 | Change some err/warn -> errx/warnx. Should maybe do the same for | Todd C. Miller | |
the short write cases. | |||
2002-11-07 | Allow '$' in a username as long as it is the last character since | Todd C. Miller | |
samba wants to create usernames that end in '$'. From Paul Chakravarti | |||
2002-08-12 | Swap args to calloc(3) so they are in the correct order; art@ ok. | Aaron Campbell | |
2002-07-25 | Check snprintf() rval for < 0; OK deraadt@ | Todd C. Miller | |
2002-06-14 | spelling; from Brian Poole <raj@cerias.purdue.edu> | Todd T. Fries | |
2002-06-09 | When checking for valid login names, check length against MaxUserNameLen. | Todd C. Miller | |
Noticed by Brian Poole who supplied a different patch. | |||
2002-05-17 | When modifying a group w/ no members with groupmod(8) the trailing | Todd C. Miller | |
newline was not added. Reported by Rob Sessink, different fix by me. | |||
2002-04-04 | From Brian Poole: | Todd C. Miller | |
o unlink /etc/group temp file if rename fails o when doing 'cd' in a system() separate with && not ';' so we don't do stuff in the wrong place. Much of this should just be done inline. | |||
2002-04-03 | UID ranges specified on the command line were being overridden by | Todd C. Miller | |
those found in the config file. Those on the command line should be used in preference to the config file ranges. Based on a patch from Brian Poole. | |||
2002-03-14 | Remove \n from err/errx/warn/warnx(). | Mike Pechkin | |
millert@ ok | |||
2002-03-05 | 'user -D -k path' was not actually changing the default values unless another | Todd C. Miller | |
option to change was specified. Also fix man page formatting mistake. From Brian Poole | |||
2002-02-16 | Part one of userland __P removal. Done with a simple regexp with some minor ↵ | Todd C. Miller | |
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | |||
2001-12-05 | Minor sync with NetBSD | Todd C. Miller | |
o fix two err() calls that should be errx() o don't use the colonc variable in a non-obvious way o add missing or of F_SHELL when in preserve mode | |||
2001-12-05 | o Use proper uid_t and gid_t types and fixup printf format strings to match | Todd C. Miller | |
o Change "unsigned" -> "unsigned int" o Correct a buffer size that should have been LINE_MAX o Simplify creation of group entry in groupmod() using strlcat() and catch errors. Theo and myself... | |||
2001-12-05 | simplify | Theo de Raadt | |
2001-11-15 | fix password length check; allows usermod -p to work again. | Dan Harnett | |
ok millert@ | |||
2001-11-08 | Replace unreadable snprintf() and pointer arithmetic with simple strlcat(). | Todd C. Miller | |
If group file line would grow to be too long, leave it unmolested (previously it would get removed). Use fclose(fp) not close(fd) for a stream that was fdopen()ed. Otherwise we could leak memory. When calling fwrite() pass the buffer as a single element instead of using n one-byte elements. | |||
2001-09-18 | Sync with NetBSD plus the following changes: | Todd C. Miller | |
o use LINE_MAX for the max password entry length. This is also what pwd_mkdb does. o add more checks for lines that are too long o kill some useless (and incorrect) casts o check snprintf() return vals for sanity before use o sync usage() with man pages o slight KNF o eliminate some silly uses of snprintf | |||
2001-08-16 | extra arg to pw_mkdb | Todd C. Miller | |
2001-08-02 | o) .Sh AUTHOR -> .Sh AUTHORS; | Mike Pechkin | |
o) .Sh EXAMPLE -> .Sh EXAMPLES; o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION; millert@ ok | |||
2001-07-20 | we don't like: | Mike Pechkin | |
o) .Pp before/after .Sh; o) .Pp before/after .Sh; o) .Nm without argument in SYNOPSIS; |