summaryrefslogtreecommitdiffstats
path: root/adduser
Commit message (Collapse)AuthorAgeFilesLines
...
* mdoc(7) police: Scheduled sweep.Ruslan Ermilov2003-02-241-9/+9
|
* Update copyright.Mike Makonnen2003-02-162-6/+2
|
* Condense the output to one line per removed user. For user's whoMike Makonnen2003-02-162-21/+56
| | | | | | want the more verbose version, there's a -v option. Approved by: markm (mentor)
* Revisit the shell special characters issue and settle it once-and-forall.Mike Makonnen2003-02-091-13/+19
| | | | | | | | All characters will be accepted, and pw(8) can sort out which ones it will allow and which ones it won't. Approved by: markm (mentor) Prodded by: Philippe Bourcier <philippe@cyberabuse.org>
* Change the behaviour of adduser to match the previous incarnation a little more.Adrian Chadd2003-02-081-2/+26
| | | | | | | | | | | | | If any of the given groups do not exist complain and let the user try again. This saves the user from discovering at the end of the process that they've forgotten to add a group or they've typoed. Thanks to cmc/dougb for pointing out how bad my sh fu actually is. Original code by: me Scary sh rewrite by: dougb Reviewed by: dougb
* Better gender-neutral language.Tony Finch2003-02-041-2/+2
| | | | Submitted by: sheldonh
* back out logging to /var/log/adduserMax Khon2003-01-241-6/+0
| | | | (/usr/sbin/pw already logs to /var/log/userlog)
* In interactive mode, ask the user if he/she wants to add anotherMike Makonnen2003-01-241-0/+18
| | | | | | | | user and re-run interactive questions or quit depending on the answer. Submitted by: Scot Hetzel <hetzels@westbend.net> Approved by: markm (mentor)
* expr foo -> $((foo))Max Khon2003-01-231-2/+2
|
* - restore an ability to write log of added users (default toMax Khon2003-01-231-3/+13
| | | | | | | /var/log/adduser, disabled if empty or adduserlog="no") - do not ask for password in configure mode - print $passwdtype instead of password in configure mode - add DATECMD, GREPCMD (not overridable but with full path)
* Do not loose trailing spaces when printing prompt messages.Max Khon2003-01-231-3/+3
|
* *blush*Mike Makonnen2003-01-231-8/+8
| | | | | | | While I'm here properly quote all the other input I neglected to quote. Approved by: markm (mentor)(implicit)
* Don't forget to properly quote input.Mike Makonnen2003-01-211-1/+1
| | | | | Approved by: markm (mentor)(implicit) Submitted by: Robin Breathe <robin@isometry.net>
* do not loose trailing space when asking uidMax Khon2003-01-201-1/+1
|
* english(4) police.Jens Schweikhardt2002-12-272-5/+5
|
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-2/+2
| | | | Approved by: re
* Correctly handle files with IFS characters (spaces) in their names whenTim J. Robbins2002-12-091-7/+3
| | | | | | | cleaning up temporary files. Submitted by: Mike Makonnen <mtm@identd.net> Approved by: re
* mdoc(7) police: overhaul.Ruslan Ermilov2002-12-042-182/+272
| | | | Approved by: re
* Replace the perl versions of adduser and rmuser with shell script versions.Scott Long2002-12-037-2291/+1458
| | | | | Submitted by: Mike Makonnen <mtm@identd.net> Approved by: re
* mdoc(7) police: markup fixes.Ruslan Ermilov2002-11-271-3/+4
| | | | Approved by: re
* Clarify the unique groups scheme by mentioning that the 002 umaskTony Finch2002-11-081-3/+5
| | | | | | | is instead of the usual 022 umask, and explain that what the scheme still prevents is unwanted changes, not prying eyes. While I'm here, mess with the phrasing and line-breaks a bit.
* Fix conjugation of exists and add full stops to the messages I changed.David Malone2002-08-111-2/+2
| | | | | | PR: 38481 Submitted by: Kevin Kinsey <kadmin@elisha.daleco.biz> MFC after: 1 week
* The .Nm utilityPhilippe Charnier2002-07-142-15/+22
|
* Found a single point where rmuser(8) wasn't robust to strangeYaroslav Tykhiy2002-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 usernamesYaroslav Tykhiy2002-01-281-4/+3
| | | | inside the function that verifies username validity.
* Disallow adding duplicate roots, toors, or other users w/uid 0.Yaroslav Tykhiy2002-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 charactersYaroslav Tykhiy2002-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)Yaroslav Tykhiy2002-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 fromIan Dowse2002-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).Ruslan Ermilov2002-01-141-2/+2
| | | | PR: docs/30797
* 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