summaryrefslogtreecommitdiff
path: root/usr.sbin/user/user.c
AgeCommit message (Expand)Author
2013-11-23unsigned char casts for ctype; ok jcaTheo de Raadt
2013-09-10Move the chown and chmod out of copydotfiles() and add an explicitTodd C. Miller
2013-08-06Write uids/gids as unsigned in the passwd file and error messages.Todd C. Miller
2013-04-02for parsing time values, fall back to atoll() for time_tTheo de Raadt
2013-03-04When locking/unlocking an account, never touch passwords that are "*"Antoine Jacoutot
2013-02-16Fix unlocking on 32bits arch where it would fuck up the shell...Antoine Jacoutot
2012-09-20Be consistent with what the installer and useradd(8) do and put newlyAntoine Jacoutot
2012-09-18Add 2 new knobs to usermod(8):Antoine Jacoutot
2012-01-29fix previous: grp is unused here just check the return valueAntoine Jacoutot
2012-01-28Make it possible to remove a user from all secondary groups by using:Antoine Jacoutot
2012-01-28When setting the groups (`-S'), make sure all provided groups exist inAntoine Jacoutot
2012-01-12fgets(3) returns a pointer, so compare against NULL, not integer 0.Antoine Jacoutot
2011-12-31Remove the EXTENSIONS ifdef danse; it might have made sense in the pastAntoine Jacoutot
2011-12-30Fix a warning.Antoine Jacoutot
2011-12-27Follow adduser(8) behaviour (as well as what the pkg tools and ourAntoine Jacoutot
2011-12-24-p requires an argument; from Stefan PetterssonJason McIntyre
2011-12-04Add a new '-S' option to _set_ the user's secondary group(s) (which alsoAntoine Jacoutot
2011-04-16remove trailing whitespace, no binary change.Igor Sobrado
2011-04-08- avoid nasty line wrap in SYNOPSISJason McIntyre
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
2010-07-26- use warnx instead of warn when skipping large lines, as errno isMiod Vallat
2009-02-08deal with potential empty string fgets can returnCharles Longeau
2009-01-21paragraphs and sentences start with uppercase letters; synchronizeIgor Sobrado
2008-12-20- various improvements from Ingo Schwarze;Jason McIntyre
2008-12-16strptime() never sets tm_isdst, so set it to -1 before passing thePhilip Guenthe
2008-10-09When adding a new user, do not move a potential yp line (+:*:::0:0::::) to theMiod Vallat
2007-08-02catch a few truncation cases instead of silently ignoring them. one of theTheo de Raadt
2007-04-05remove some extra tests, from charles longeauTed Unangst
2007-03-02Check if group exists before checking if group is local.Ray Lai
2007-03-02Replace regex(3) routines with simple string searching and comparisonRay Lai
2007-01-12Compare against the username, so listing groups when given a numericOtto Moerbeek
2006-12-20Fix potential buffer overread in function, even though the currentRay Lai
2005-12-31Make useradd -p slightly less dangerous by overwriting the encryptedTodd C. Miller
2005-08-27change default user shell to ksh as well.Theo de Raadt
2005-07-08Don't mistakenly match groups with partial name matches in "usermod -G".Todd C. Miller
2005-04-15fix snprintf return value check. ok otto@ millert@Moritz Jodeit
2005-04-13very unlikely overflow. but sticking to the idiom is important: thereby,Theo de Raadt
2004-09-30If the yp marker is in the file, add new users before it. PR 3727.Otto Moerbeek
2004-06-04Clear up some confusion: -e is account expiry flag, -f is passwordOtto Moerbeek
2004-05-10Check return value of fclose() calls after writing.Otto Moerbeek
2004-05-10when adding a new group to /etc/groups, place it just before the firstTheo de Raadt
2004-04-19Don't complain when the /nonexistent homedir does not exist.Todd C. Miller
2004-02-26Avoid using regexp when removing a user from /etc/group entries inTodd C. Miller
2004-01-03Replace bogus use of fgetln() (which doesn't NUL-terminate strings)Todd C. Miller
2003-12-25Fix multi-line stringAlexander Yurchenko
2003-12-24Fix bound checks for gecos field, taking into account it may containOtto Moerbeek
2003-06-14For moduser(), only do valid_class() check when F_CLASS is set inTodd C. Miller
2003-06-10Check that login class exists before using it; based on a patch fromTodd C. Miller
2003-06-10o Check for fwrite() error with != 1, not <= 0 (mostly style)Todd C. Miller
2003-06-10Keep a table of password types, and their associated lengths, andTodd C. Miller