summaryrefslogtreecommitdiff
path: root/usr.sbin/user
AgeCommit message (Collapse)Author
2021-12-12Fix copypasto in comment.nia
2021-12-10useradd(8): Recognize Argon2 passwords as "valid" when they are givennia
on the command line. Reported by Robert Nestor on current-users@.
2019-07-29Fix warning in userdel -r.wiz
If the 'rm -rf' works, then the home directory does not exist any more, and rmdir() on it will return an error (ENOENT). Catch and ignore it. Avoids: # useradd -m foo # userdel -r foo userdel: Unable to remove all files in `/home/foo': No such file or directory
2018-06-10Set default homeperm values before writing usermgmt.conf file and honor ↵zafer
values in it instead of ignoring it. Fixes PR bin/40324 by Guy Yur
2016-02-09Document file format better. From Travis Paul and Matthew Bauer.wiz
Bump date. Addresses PR 50787.
2014-09-19Fix section name.wiz
2014-09-19Sort sections. From Henning Petersen in PR 49222.wiz
2012-11-28Fix error message when trying to add a group using -g =uid thatblymn
that already exists, the old version printed the wrong GID.
2012-11-28Google Code In bug fix by Philip Hayes, fixes bin/41049blymn
2011-12-01Move path names to pathnames.h per conventionsdholland
2011-12-01Handle return value from system() properly.dholland
PR 45672 from River Tarnell.
2011-12-01attribute format printf -> __printflikedholland
2011-08-31NULL does not need a castplunky
2011-01-04Close masterfd after reading from it. Found by cppcheck.wiz
2009-12-31Bump date for gid_range.wiz
2009-12-31Add new keyword gid_range to usermgmt.conf which specifies a defaultmlelstv
GID range for groupadd(8).
2009-10-15Fix -p:hubertf
* rm_eo is the first character *after* the match, so no need for a +1 * Blowfish hashes are only 53 chars long, not 54
2009-04-22Enable WARNS=4 by default, except for:lukem
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest kimpersonate kstash ktutil makefs ndbootd ntp pppd quot racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump traceroute traceroute6 user veriexecgen wsmoused zic (Mostly third-party applications)
2009-03-20Fix check for duplicate gid when '-g =uid' is specified to usermod.mike
Closes PR bin/40391
2009-03-18Do not allow duplicate group id in groupmod unless -o is specified.mike
Closes PR bin/40393
2009-03-11Delete misplaced period and line ending.dyoung
2009-03-11bin/40994: Michael van Elst: usermod -l change password so user is unable tochristos
login. User getpwnam_r to avoid trashing result of previous call to getpwnam().
2009-01-14Improve -G documentation. It may be repeated.reed
And value may be comman-delimited list of groups. 16 maximum groups.
2008-10-19Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.apb
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2008-07-18man page fixes from PR 39164.apb
2008-02-27Remove the -v verbose switch from userinfo. It was not used.reed
Also remove reference to usermgmt.conf from userinfo manpage. Discussed on tech-userlevel.
2008-02-04disclaim copyrighthubertf
2006-12-06Added a reference to passwd(1), which is useful to later change arillig
password.
2006-11-02Change the default shell to /bin/sh. It has most of the usabilitypavel
advantages of our ksh (emacs line editing). There were objections against using ksh, because our (pd)ksh is not the real ksh. See also the discussion on tech-userlevel. Motivation for changing the default from csh is better interactive usability and desire to use a standard shell, which is already used for all the system shell scripts. Approved by core.
2006-10-22use c99 initializerschristos
2006-10-13Sort options in usage.wiz
2006-10-13Remove empty line.wiz
2006-10-07PR/30351: Hubert Feyrer: useradd(8) doesn't allow setting permissions ofelad
new home [patch] Adapted to current code and some nits from myself. Thanks for the patch!
2006-09-30revert change of default shell, reguested by agc@.pavel
2006-09-30Change the default shell to /bin/ksh, which is our best interactivepavel
shell at the moment. Proposed on tech-userlevel and approved by hubertf@.
2006-09-30in userinfo, initialize buf (the buffer which will hold group names)pavel
to be a null-terminated string. Otherwise, if the user is not a member of any secondary groups, buf is completely uninitialized and userinfo adds garbage to the list of groups printed.
2006-06-27use realloc instead of free+callocchristos
2006-06-02try again with the Coverity annotationjnemeth
2006-05-29Xref a few more manpages: user(8), group(8), ...hubertf
2006-05-27Coverity annotation -- although memsave free()s its first argument, itjnemeth
will allocate memory and assign it to its first argument, so it is neutral Coverity CID 3229: memory leak -- failed to fclose() master in moduser() Coverity CID 3228: memory leak -- failed to free() newname in groupmod()
2006-03-22Garbage collect cc in moduser, it is only set once, but never read asjoerg
noticed by lint.
2006-03-22Don't leak FILEs when flock fails. Found by Coverity (CID 1776, 1777 andjoerg
1778). Patch by Liam J. Foy, which handles one more case.
2006-03-17put the array bounds check _before_ accessing the array.dmcmahill
Coverity CID: 1479
2006-03-17put the array bounds check _before_ accessing the array.dmcmahill
Coverity CID: 1480
2006-02-23By popular demand don't bail out if a user's shell is not in /etc/shells.christos
Issue a warning instead.
2006-01-26Add a missing space in the usage message.jmmv
2006-01-20Add missing .El. From Nicolas Joly in PR 32546.wiz
2006-01-14Use a CPP definition for "/sbin/nologin" - it's at the top of theagc
file. Modify the logic in the previous but one commit - /sbin/nologin should be considered a valid user shell, since otherwise, with the addition of the checks for a valid user shell, useradd with a shell of /sbin/nologin will fail. Modify some of the code here to conform to the standards in the rest of this file.
2006-01-13Add forgotten ')'.elad