summaryrefslogtreecommitdiffstats
path: root/adduser
Commit message (Collapse)AuthorAgeFilesLines
* Remove myself as maintainer, I don't have free time for adduser anymore.Wolfram Schneider2002-01-131-2/+0
|
* Oops, missed one point where $pwd_mkdb had been used.Yaroslav Tykhiy2002-01-041-1/+1
| | | | | Now it should be @pwd_mkdb since we moved to Perl's safe system() not using /bin/sh.
* Document a new option: -force.Yaroslav Tykhiy2002-01-021-0/+8
|
* Allow weird characters in usernames if an admin persists on that:Yaroslav Tykhiy2002-01-021-8/+27
| | | | | | | | | | a) Convert all the remaining older Perl system() calls to the new, more secure LIST format so they are robust to whitespace and shell metacharacters in their arguments. b) Add a new option: -force, which allows adding usernames containing characters that are otherwise illegal. PR: bin/22860 bin/31049
* Be consistent in what restriction is imposed on a usernameYaroslav Tykhiy2002-01-021-2/+4
| | | | in the code and what the warning message reads.
* Forbid adding duplicate users with the name of "0".Yaroslav Tykhiy2002-01-021-2/+2
| | | | | Previously, it was possible due to 0 and "0" being equivalent in Perl.
* Parse atq(1) output correctly under various (but not all perhaps)Yaroslav Tykhiy2002-01-021-1/+1
| | | | locale settings: allow any date and time separator characters.
* In remove_at_jobs():Yaroslav Tykhiy2002-01-021-2/+2
| | | | | Don't print "Removing at jobs" if there are no jobs to remove. Add a whitespace before "done." so the output looks better.
* Print the correct filename if we fail to open $etc_passwd.Dima Dorfman2001-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'tDima Dorfman2001-08-201-3/+4
| | | | | | | have to regenerate the entire database. PR: 25798 Submitted by: Domas Mituzas <domas.mituzas@delfi.lt>
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+3
|
* Add "use Fcntl" to resolve O_RDWR|O_CREAT|O_EXCL macros used inGuy Helmer2001-08-011-0/+2
| | | | | | new sysopen call. PR: 29366 (in part)
* Install the new password file with pwd_mkdb, not the old one.Guy Helmer2001-08-011-1/+1
| | | | PR: 29366 (in part)
* The variable giving the name of the temporary password file wasGuy Helmer2001-07-301-5/+5
| | | | | | | | inconsistently named "ptmp" and "etc_ptmp". This commit changes it to "passwd_tmp" for consistency and to match OpenBSD's name for the variable. Consulted with: jedgar
* Use a safer method of creating the temporary password file.Chris D. Faulhaber2001-07-251-8/+8
| | | | | | Submitted by: dynamo@harvard.net Obtained from: OpenBSD MFC after: 3 days
* Fix removal of at jobs.Guy Helmer2001-07-231-24/+66
| | | | | | PR: bin/23052 Submitted by: Mike Sellenschuetter <mike.sellenschuetter@bankofamerica.com> MFC after: 1 week
* Generate a bigger salt. This is necessary for blowfish to workDima Dorfman2001-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>
* Remove whitespace at EOL.Dima Dorfman2001-07-152-34/+34
|
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
|
* Fix the rmuser script to correctly determine if a user does not exist.Adrian Chadd2001-05-021-1/+1
| | | | PR: 26674
* Extend adduser to create "locked" accounts. Adduser can now lock anAdrian Chadd2001-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 theDoug Barton2001-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 thanDoug Barton2001-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 forDavid E. O'Brien2001-04-151-1/+1
| | | | | | | username to rm. PR: 25961 Submitted by: Linh Pham <lplist@closedsrc.org>
* beforeinstall -> SCRIPTS.Ruslan Ermilov2001-04-071-8/+2
|
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-1/+1
| | | | - MAN[1-9] -> MAN.
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-13/+13
|
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
|
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-272-1/+3
|
* * Fix a long line that I introduced in the last commitDoug Barton2000-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.Ruslan Ermilov2000-12-141-1/+1
|
* If a user is in the database, rmuser ought to be able to remove them.Doug Barton2000-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.Ruslan Ermilov2000-11-202-2/+2
|
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-12/+2
|
* Complete migration of aliases file to /etc/mail/aliases.Gregory Neil Shapiro2000-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 permittedMark Newton2000-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 ifMark Newton2000-03-141-1/+1
| | | | | | the specified username contained uppercase alphabetics. PR: bin/17372
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-061-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-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$Peter Wemm1999-08-285-5/+5
|
* Remove references to the non-existent addgroup(8) and rmgroup(8)Nik Clayton1999-07-272-6/+2
| | | | | | | commands. PR: docs/12659 Submitted by: Mark Diekhans <markd@Grizzly.COM>
* Grammar and spelling fixesKris Kennaway1999-06-301-5/+5
| | | | Obtained from: OpenBSD
* Added myself as maintainer.Wolfram Schneider1999-02-091-1/+3
|
* Print yyyy/mm/dd in /var/log/adduser, instead of yy/mm/ddDaniel O'Callaghan1999-01-151-1/+2
| | | | Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Removing -batch option from adduser. Adduser was written asWolfram Schneider1998-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.Wolfram Schneider1998-06-071-11/+38
| | | | | PR: 6754 Submitted by: uhlar@netlab.sk
* MF22: Remove confusing commaTim Vanderhoek1998-03-181-2/+2
|
* Clarify the -batch arguments.Steve Price1998-02-141-1/+5
| | | | | PR: 5677 Submitted by: Adrian Filipi-Martin <adrian@virginia.edu>
* Typo.Wolfram Schneider1998-02-021-2/+2
|
* Rename the pwd_mkdb(8) option '-c' to '-C' for better compatiblityWolfram Schneider1998-01-101-2/+2
| | | | with BSD/OS.