summaryrefslogtreecommitdiff
path: root/usr.sbin/adduser/adduser.perl
AgeCommit message (Collapse)Author
2005-08-31Use ksh as the default shell instead of sh.Mark Kettenis
ok deraadt@
2005-03-30Use getcap to pull out login.conf entries that contain a localcipherTodd C. Miller
entry instead of giving the user a list of all possible login classes. This makes the default list "daemon default staff" instead of listing all the stub classed only meant for inclusion into the real classes.
2005-02-24Close files after we are done with them; from mpech@Todd C. Miller
2003-06-17make Groupname match Groupid output; ok millert@Jason Peel
2003-06-14Add an "auto" encryption type that calls encrypt(1) with "-c class".Todd C. Miller
This results in encrypt(1) picking the password cipher based on the user's login class in /etc/login.conf.
2003-06-10Add login class support; based on a diff from Peter WernerTodd C. Miller
2003-06-09Fix my previous commit here, pwd_mkdb needs to be a list now too.Todd C. Miller
2003-06-08Instead of splitting a flat string into a list for system(), justTodd C. Miller
pass it a list in the first place. Also fix up some spacing.
2003-05-13Sync valid username check w/ user(1). Patch from Brian Poole,Todd C. Miller
problem reported by juncus on misc
2003-04-03skiped -> skipped;Jason McIntyre
from David Hill (thanks)
2003-03-11spellingDavid Krause
ok millert@
2002-07-10Fix encryption method prompt; Nick NauwelaertsTodd C. Miller
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-03-05Don't delete ptmp if we didn't create it ourselves; Brian PooleTodd C. Miller
2002-02-23check that user is not in group more thoroughly (don't assume anythingMarc Espie
about group contents). ok millert@
2002-02-18enable echo in signal handler, since it could be disabledEric Jackson
pr#1939
2001-10-09Don't try to use $groupname{$group_login} when we know it isTodd C. Miller
undefined. This caused adduser to not add a new login group when there was an entry like ":*::" in /etc/group due to a false positive on a broken sanity check. Since we *know* the gid of the new user's login group just use that.
2001-10-01Do proper initialization of hashes and lists. Use "cp -R" not "cp -r"Todd C. Miller
since the latter form is discouraged. From raj@cerias.purdue.edu
2001-09-07Cleanup from Brian Poole:Todd C. Miller
o remove useless copyright() sub since it does nothing o remov unused variables o clear hashes properly o grammar/spelling fixes o pass perl -w o unlock the ptmp file before we close it, not after o parse args in config_read() correctly o man page cleanup
2001-09-03correct error message when unable to open /etc/master.passwd; ↵Todd C. Miller
raj@cerias.purdue.edu
2001-07-06max uid should be 2147483647, not 2147483648.Mike Pechkin
problem report from: Chris Cameron <chris@UpNIX.com> millert@ ok
2001-04-0931 vs 32; ianm@cit.uws.edu.auTheo de Raadt
2001-01-3132 character user namesChris Cappuccio
2000-12-30Change wording when empty password is entered: our adduser sets theAngelos D. Keromytis
password to "*" (thus disallowing logon) -- PR 1480
2000-11-26Use pwd_mkdb -u usernameTodd C. Miller
Call system() with a list to avoid a call to sh
2000-11-25Fix some warnings and take advantage of perl5 system definesTodd C. Miller
In adduser, use /etc/ptmp as a lock file like the other passwd programs. Currently it is just kept empty which is not so great. Use sysopen() with explicit file modes so there is no race whereby a user could see the contents on the master.passwd temp file in rmuser. Fix order of file opens in rmuser so we don't try and remove anything unless we can lock all our files.
2000-10-10Remove useless line; mj@who.netTodd C. Miller
2000-08-19valid characters mismatch, PR#1362; Marty CombsJakob Schlyter
2000-07-09When a null password has been entered, default to ``no'' instead of ``yes''Aaron Campbell
for the confirmation.
2000-04-25change /usr/share/skel to /etc/skel. maintain dot.magic for backwards ↵Jakob Schlyter
compability.
2000-01-03Y2K bug in logging function, tm_year is year - 1900, not the last two digitsTodd C. Miller
of year. Two digit years are just a bad idea anyway so convert to a four digit year in the logfile.
1999-09-06Send password to encrypt(1) via stdin. millert@ okAlex Feldman
1999-07-03typosHugh Graham
1999-06-29grammar; form@kti.nsc.ruAaron Campbell
1999-06-17typoMarc Espie
1999-02-04allow higher uids.Niels Provos
1999-01-18add 'old' as a synonym for 'des'Todd C. Miller
1999-01-16Fix PR# 692. evanc@concer.toTobias Weingartner
1998-12-29do batch in encrypted mode by default; ibo@val-axs.netTheo de Raadt
1998-10-14solve < > or - in password problemTheo de Raadt
1998-09-22Add support for having UIDs past 32000. Changed the option -uid toTobias Weingartner
-uid_start, and added -uid_end to specify valid ranges to adduser. Manpage updated to relfect reality, plus a couple spelling errors.
1998-07-20clone freebsd semantics for usernames; noted by abyss@abyss.imaji.netTheo de Raadt
1998-06-03teach adduser about /sbin/nologinTheo de Raadt
1998-02-16Fix for the remainder of PR 402bitblt
1998-02-16Shell metacharacters are now ok in user passwords, as per the first halfbitblt
of PR 402
1997-05-29Major cleanup:gene
+ No longer prompt for setting of default options _every_ time it's invoked. Only does that when adduser.conf doesn't exist or with the passing of -config_create + Scriptwork cleanup and prettying + Fix the manpage to use proper English and give examples and better docs in general. + Improve the bonehead question "Use passwords" to seem more intuitively meaningful. + Add support for multiple kinds of encryption with a default entry or a new -e flag (passwd.conf). TODO: Make adduser grok passwd.conf and add users for whom the encryption is different to it. + "and more..." see the manpage.
1997-02-25Yet more fixes from tv@pobox.com, PR#122.Jason Downs
1997-02-20Don't add shells multiple times, from tv@pobox.com. PR# user/112.Jason Downs
1996-12-08sync with FreeBSD, except for the damned tcl script.Jason Downs
1996-09-28Perl adduser(8) from FreeBSD.Jason Downs
TODO: Hack to accept the same arguments as BSD/OS adduser(8). Add rmuser(8).