summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
Commit message (Collapse)AuthorAgeFilesLines
* Found a single point where rmuser(8) wasn't robust to strangeyar2002-02-111-1/+1
| | | | | characters in a username: where it was inserted into a regexp. Fix it by escaping metacharacters in the name with \Q-\E.
* Keep similar things together: Check for too long usernamesyar2002-01-281-4/+3
| | | | inside the function that verifies username validity.
* Disallow adding duplicate roots, toors, or other users w/uid 0.yar2002-01-281-1/+1
| | | | | | | Previously, a truth check instead if defined() check erroneously allowed that. PR: bin/8745
* Implement a flexible way of letting some unusual charactersyar2002-01-281-6/+38
| | | | | | | | into usernames: Make the regular expression to check usernames against configurable. PR: bin/22860 bin/31049 Reviewed by: sheldonh
* Remove the newly added -force option because it made adduser(8)yar2002-01-282-29/+2
| | | | | | | less robust to possible errors of the user/admin while adduser(8) had been intended to minimize their possibility. An alternative way of introducing strange symbols into usernames to be committed really soon.
* Add `-h' to the chown command so that symbolic links copied fromiedowse2002-01-201-1/+1
| | | | | | | | the skeleton directory are chown'd to the new user. PR: bin/10601 Submitted by: Adrian Filipi-Martin <adrian2ubergeeks.com@gosub.cstone.net> MFC after: 1 month
* yp(4) -> yp(8).ru2002-01-141-2/+2
| | | | PR: docs/30797
* Remove myself as maintainer, I don't have free time for adduser anymore.wosch2002-01-131-2/+0
|
* Oops, missed one point where $pwd_mkdb had been used.yar2002-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.yar2002-01-021-0/+8
|
* Allow weird characters in usernames if an admin persists on that:yar2002-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 usernameyar2002-01-021-2/+4
| | | | in the code and what the warning message reads.
* Forbid adding duplicate users with the name of "0".yar2002-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)yar2002-01-021-1/+1
| | | | locale settings: allow any date and time separator characters.
* In remove_at_jobs():yar2002-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.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>
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+3
|
* Add "use Fcntl" to resolve O_RDWR|O_CREAT|O_EXCL macros used inghelmer2001-08-011-0/+2
| | | | | | new sysopen call. PR: 29366 (in part)
* Install the new password file with pwd_mkdb, not the old one.ghelmer2001-08-011-1/+1
| | | | PR: 29366 (in part)
* The variable giving the name of the temporary password file wasghelmer2001-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.jedgar2001-07-251-8/+8
| | | | | | Submitted by: dynamo@harvard.net Obtained from: OpenBSD MFC after: 3 days
* Fix removal of at jobs.ghelmer2001-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 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>
* Remove whitespace at EOL.dd2001-07-152-34/+34
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* 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
|
OpenPOWER on IntegriCloud