summaryrefslogtreecommitdiffstats
path: root/adduser/rmuser.perl
Commit message (Collapse)AuthorAgeFilesLines
* Replace the perl versions of adduser and rmuser with shell script versions.Scott Long2002-12-031-601/+0
| | | | | Submitted by: Mike Makonnen <mtm@identd.net> Approved by: re
* 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.
* 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.
* 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
* Fix the rmuser script to correctly determine if a user does not exist.Adrian Chadd2001-05-021-1/+1
| | | | PR: 26674
* 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>
* * 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 '$'.
* 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
* 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
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
|
* Variable name typo.Wolfram Schneider1997-04-021-2/+2
| | | | | Reviewed by: Guy Helmer <ghelmer@cs.iastate.edu Submitted by: Paul Sandys <myj@nyct.net>
* Cleaned up some messages, added a check to remove a leftover popd fileWolfram Schneider1997-03-081-29/+141
| | | | | | | | | | 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$Peter Wemm1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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.Wolfram Schneider1996-12-291-2/+4
| | | | pointed out by: max
* Expand username limit to 16Andrey A. Chernov1996-12-071-3/+3
|
* install rmuser, addgroup, rmgroup in /usr/sbinWolfram Schneider1996-11-171-0/+462