summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser/adduser.perl
Commit message (Collapse)AuthorAgeFilesLines
* Print the correct filename if we fail to open $etc_passwd.dd2001-09-061-1/+1
| | | | Submitted by: Brian Poole <raj@cerias.purdue.edu>
* Pass the username we just made to pwd_mkdb so that the latter doesn'tdd2001-08-201-3/+4
| | | | | | | have to regenerate the entire database. PR: 25798 Submitted by: Domas Mituzas <domas.mituzas@delfi.lt>
* Generate a bigger salt. This is necessary for blowfish to workdd2001-07-191-1/+1
| | | | | | | properly, and doesn't hurt the other algorithms. PR: 28991 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
* Extend adduser to create "locked" accounts. Adduser can now lock anadrian2001-05-021-15/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | account at creation, create accounts with a "*" password (so you can use alternate authentication schemes without fearing a "default" password biting you later), and blank passwords. Yes, adduser could create a blank password account, but this makes it slightly more difficult to shoot yourself in the foot. The /etc/adduser.conf entries are: # use password-based authentication for new users # defaultusepassword = "yes" | "no" defaultusepassword = "yes" # enable account password at creation # (the password will be prepended with a star if the account isn't enabled) # defaultenableaccount = "yes" | "no" defaultenableaccount = "yes" # allow blank passwords # defaultemptypassword = "yes" | "no" defaultemptypassword = "no" Requested by: alfred Reviewed by: alfred
* By popular demand, have adduser preserve comments at the top of thedougb2001-04-171-2/+10
| | | | | | group file. Because of the way the group sorting works while printing out the new file it's not possible at this time to restore comments in other locations, but at least they won't just disappear altogether.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Grammar and spelling fixeskris1999-06-301-5/+5
| | | | Obtained from: OpenBSD
* Print yyyy/mm/dd in /var/log/adduser, instead of yy/mm/dddanny1999-01-151-1/+2
| | | | Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Removing -batch option from adduser. Adduser was written aswosch1998-08-171-63/+6
| | | | | | an *interactive* command for newbies. The pw(8) does now a much better job for adding users from command line. Also, the -batch option is not well tested, buggy and unsupported.
* Always ask for homedir.wosch1998-06-071-11/+38
| | | | | PR: 6754 Submitted by: uhlar@netlab.sk
* Rename the pwd_mkdb(8) option '-c' to '-C' for better compatiblitywosch1998-01-101-2/+2
| | | | with BSD/OS.
* Small bugfix: store $uid_start instead hard coded value 1000wosch1997-12-241-2/+2
| | | | in /etc/adduser.conf.
* Do not complain about non existing shell "/nonexistent"wosch1997-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.wosch1997-09-201-2/+2
|
* Stop the growing list of shells if /etc/adduser.confwosch1997-08-261-4/+4
| | | | was updated.
* Nologin is also a valid 'invalid' shellpst1997-07-311-2/+2
|
* Delete dead test code.wosch1997-07-241-13/+1
|
* `cp -r' -> `cp -R'wosch1997-07-181-2/+2
| | | | Option -r is obsolete and buggy.
* Change "no" answer to "default" for login class, because "no" classache1997-05-011-3/+3
| | | | can exists and "default" class is really equal to empty class.
* Allow "no" answer on login class prompt override non-emptyache1997-05-011-2/+3
| | | | /etc/adduser.conf defaultclass with empty one
* 1. Deal with login classes nowache1997-05-011-10/+29
| | | | | 2. Turn on send_message by default for security reasons (mailbox must be pre-created)
* Support comments in password database (/etc/master.passwd).wosch1997-03-091-1/+9
| | | | | Comments in group database (/etc/group) are currently not supported - adduser silently delete blank lines and comments.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Allow dash `-' (except for first char) and underscore `_' in usernames.wosch1996-12-291-3/+3
| | | | pointed out by: max
* remove group limits checkswosch1996-12-291-10/+1
|
* Minor style fixes.mpp1996-12-231-3/+3
| | | | | | I also renamed the adduser "-quit" option to "-quiet", since it is supposed to be the same as the -s/-silent option, and -quit must have beena typo.
* Expand username limit to 16ache1996-12-071-4/+4
|
* Don't show on the screen just securely entered passwordache1996-11-271-3/+3
| | | | | (in /etc/adduser.message text) Sending password by E-mail on local machine is joke in any case
* do not print 'illegal shell' for pseudo users news and xtenwosch1996-11-201-2/+2
| | | | Submitted by: kuku
* warn if reach group line limit (>200 users, >1024 bytes per line)wosch1996-09-171-1/+10
| | | | | | close PR#1595 suggested by: Seppo Kallio <kallio@beeblebrox.cc.jyu.fi
* Do not backup master.passwd if pwd_mkdb returned an error. Thiswosch1996-09-141-13/+3
| | | | | | | was to paranoid, pwd_mkdb(8) is carefully enough to not corrupt master.passwd on failure. Submitted by: joerg
* Make passwords no longer echo or display. Because of this, we now alsojkh1996-09-111-4/+16
| | | | | | | ask for matching confirmation. I'm sure there is a clever direct-from-perl ioctl way of putting the terminal into noecho mode, but I don't feel like learning perl so I just used system. [yes, I'll put stty on the installation boot floppy as necessary]
* typo policeadam1996-08-281-16/+17
| | | | | | | | I couldn't make any sense of the sentence "Eval variables in this file." so I left it alone. also allow creation of new local group when NIS groups are used. this can probably be done more elegantly, and needs more thought.
* sync copyright with /usr/share/examples/etc/bsd-style-copyrightwosch1996-08-271-26/+16
|
* run pwd_mkdb with new check option [-c] to verify correctnesswosch1996-08-201-2/+2
| | | | of /etc/master.passwd
* Do not add an user to a group if the group is also the login group.wosch1996-08-141-11/+14
|
* Do not send "welcome mail" as default. If you want this featurewosch1996-08-131-4/+8
| | | | | | you can still enable it. Better, use mail client like elm or pine. Requested by: Jordan
* We DON'T ship bash by default, why is it the default shell?gclarkii1996-05-061-3/+3
| | | | | | We also don't ship tcsh or ksh by default. Correct these two things to make sh the default and increase csh and sh to be higher priority.
* Submitted by: Masafumi NAKANE <masafumi@tky007.tth.expo96.ad.jp>wosch1996-02-101-2/+8
| | | | bugfix: chown home directory if don't copy dotfiles
* Clean up some of the english here..jkh1995-10-221-10/+10
|
* Various fixes to make this work better when called from other tools.jkh1995-10-191-2/+14
| | | | Submitted by: Coranth Gryphon <gryphon@healer.com> & Wolfram Schneider <wosch@cs.tu-berlin.de>
* The problem is the returned salt, while the freebsd man pages asks that thejkh1995-05-201-2/+2
| | | | | | crypt salt string begin with a '_', no other crypt's do. If you remove the initialization of $salt to '_' in sub salt(), everything works as advertised. Submitted by: Charles Henrich <henrich@crh.cl.msu.edu>
* Don't accept usernames longer than 8 charactersache1995-04-301-1/+5
| | | | Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
* Non-blocking lockache1995-04-091-13/+20
| | | | | Remove old salt cause possible endless loop Submitted by: <wosch@cs.tu-berlin.de>
* o more optionsache1995-03-081-562/+941
| | | | | | | | | | | o less restrictive, you can choise uid, gid ... o invite user into some groups o encrypted passwords with crypt o batch mode (for instance, this works now: $ adduser -batch jkh guest,uuadmin "Jordan K. Hubbard" passwd see manpage for more details) Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
* Wolfram Schneider <wosch@cs.tu-berlin.de>:jkh1995-01-091-107/+527
| | | | | | | o manpage o save configuration in /etc/adduser.conf o send message file (/etc/adduser.message) Submitted by: woschcs.tu-berlin.de
* Update adduser to version by Wolfram Schneider. Sorry, Gary, but hisjkh1995-01-031-150/+531
| | | | | adduser is a Cadillac to your Volkswagen.. :-) Submitted by: wosch@cs.tu-berlin.de
* Oops, rename adduser.sh to adduser.perlache1994-12-301-0/+195
Add empty clean and obj targets.
OpenPOWER on IntegriCloud