summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
Commit message (Collapse)AuthorAgeFilesLines
* Fix the rmuser script to correctly determine if a user does not exist.adrian2001-05-021-1/+1
| | | | PR: 26674
* 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.
* Add a more useful solution to the problem of password files with more thandougb2001-04-151-3/+14
| | | | | | | | | | one user who differs only by case. The other perl tools assume (or enforce) the all lowercase requirement, therefore making the search through master.passwd case insensitive seemed a reasonable optimization, IMO. I understand, although I do not sympathize with, the argument that someone might want to do this on purpose, and might subsequently want to use the wrong tool for the job. So, this fix should hopefully satisfy both camps.
* Rev 1.11 introduced a bug where the processing became case insensative forobrien2001-04-151-1/+1
| | | | | | | username to rm. PR: 25961 Submitted by: Linh Pham <lplist@closedsrc.org>
* beforeinstall -> SCRIPTS.ru2001-04-071-8/+2
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-1/+1
| | | | - MAN[1-9] -> MAN.
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-13/+13
|
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-272-1/+3
|
* * Fix a long line that I introduced in the last commitdougb2000-12-171-2/+3
| | | | | * Backslash escape non-alphanumeric chars in the login name so that perl doesn't choke on things like '$'.
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* If a user is in the database, rmuser ought to be able to remove them.dougb2000-11-211-42/+11
| | | | | | | | Address this by using getpwnam(), thus killing several birds with the same stone. My fix is slightly more aggressive than the originators. :) PR: misc/22278
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-2/+2
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-12/+2
|
* Complete migration of aliases file to /etc/mail/aliases.gshapiro2000-08-131-1/+1
| | | | | The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster have been contacted so those may be updated as well.
* Un-botch my botched reduction in permitted characters in the permittednewton2000-03-141-1/+1
| | | | | | | username check which resulted from my attempt to expand them. PR: bin/17372 Reviewed by: sheldonh
* Fix the case where username validity test would incorrectly fail ifnewton2000-03-141-1/+1
| | | | | | the specified username contained uppercase alphabetics. PR: bin/17372
* Remove more single-space hard sentence breaks.sheldonh2000-03-061-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-6/+12
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Remove references to the non-existent addgroup(8) and rmgroup(8)nik1999-07-272-6/+2
| | | | | | | commands. PR: docs/12659 Submitted by: Mark Diekhans <markd@Grizzly.COM>
* Grammar and spelling fixeskris1999-06-301-5/+5
| | | | Obtained from: OpenBSD
* Added myself as maintainer.wosch1999-02-091-1/+3
|
* 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-172-106/+8
| | | | | | 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
* MF22: Remove confusing commahoek1998-03-181-2/+2
|
* Clarify the -batch arguments.steve1998-02-141-1/+5
| | | | | PR: 5677 Submitted by: Adrian Filipi-Martin <adrian@virginia.edu>
* Typo.wosch1998-02-021-2/+2
|
* 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.
* Typo alert.jraynard1997-11-021-2/+2
|
* 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
|
* Cosmetic changes.charnier1997-09-012-40/+47
|
* 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.
* Remove addgroup/rmgroup -- they are completely replaced by pw(1).pst1997-07-055-362/+3
| | | | | Adduser/rmuser stay for now until we get a good user-friendly front-end for pw.
* Fix a minor nit in the .Dd macro invocation so thatsteve1997-06-233-6/+6
| | | | the revision date is displayed correctly.
* 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-012-14/+54
| | | | | 2. Turn on send_message by default for security reasons (mailbox must be pre-created)
* Variable name typo.wosch1997-04-021-2/+2
| | | | | Reviewed by: Guy Helmer <ghelmer@cs.iastate.edu Submitted by: Paul Sandys <myj@nyct.net>
* 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.
* Cleaned up some messages, added a check to remove a leftover popd filewosch1997-03-082-50/+227
| | | | | | | | | | from /var/mail, added a routine to delete the removed user's files from /tmp, /var/tmp, & /var/tmp/vi.recover, and added code to kill any running processes owned by the removed user). I've also added a flag for non-interactive execution, cleaned up the man page, and adjusted my address. Submitted by: ghelmer@cs.iastate.edu (Guy Helmer)
* Revert $FreeBSD$ to $Id$peter1997-02-229-9/+9
|
* Sort cross references.wosch1997-01-204-5/+5
|
OpenPOWER on IntegriCloud