summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add passwd manipulation code based on parts of vipw and chpass.Dag-Erling Smørgrav2002-05-082-82/+433
| | | | Sponsored by: DARPA, NAI Labs
* Use `The .Nm utility'Philippe Charnier2002-04-191-10/+15
|
* Make mppath and masterpasswd pointers instead of arrays, and initializeDag-Erling Smørgrav2002-04-171-2/+4
| | | | | | | | | them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.) Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs
* Remove bogus reference to _use_yp.Dag-Erling Smørgrav2002-04-151-9/+1
|
* Const poisoning.Ruslan Ermilov2002-04-083-14/+14
|
* Rename a couple of local variables to avoid warnings.Dag-Erling Smørgrav2002-04-061-26/+26
| | | | Sponsored by: DARPA, NAI Labs
* In the words of the submitter:Dima Dorfman2002-04-051-1/+5
| | | | | | | | | This patch explains -F for usershow and groupshow. Because "groupmod ... -F" doesn't do anything, the patch also drops that from groupmod's command line args. PR: 35955 Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
* Document the -7 option for usershow.Dima Dorfman2002-04-051-0/+9
| | | | | PR: 36735 Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
* Fix vendor ID.David Malone2002-03-301-2/+4
| | | | | | | | Make usage message match the man page. (Missing -o, -h doesn't depend on -d). PR: 36470 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 1 week
* Minor post warns stuff.David Malone2002-03-303-19/+14
| | | | | | | | | 1) Fix up vendor IDs for files I'm touching and put FBSDID in the right place. 2) Cast return value of snprintf to size_t rather than casting sizeof() to an int, 'cos we know snprintf returns a non-genative number. 3) Avoid 'char *blank = "";' by just strduping. This could be bad sometimes, but all these variables usually point at malloced memory so this makes them always point at malloced memory.
* Fix warns, ANSIfy, use __FBSDID(), sort headers.Mark Murray2002-03-249-155/+114
|
* Fix a style(9) error. Put the vendor version control string back in.Crist J. Clark2002-03-241-0/+1
| | | | I nuked it when I added the $FreeBSD$ tag.
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+1
| | | | I believe have made all of libc .h's as consistent as possible.
* Remove multi-line __P() usage.David E. O'Brien2002-03-221-8/+7
|
* remove __PWarner Losh2002-03-223-20/+21
|
* Remove __P() usage.David E. O'Brien2002-03-212-64/+64
|
* Remove __P() usage.David E. O'Brien2002-03-211-1/+1
|
* Fix a bug that prevents "00" being used as a valid year. Why bother inCrist J. Clark2002-03-181-1/+1
| | | | | | | | 2002? It is a bug. Might as well close the PR. PR: misc/14511 Submitted by: Mike Pritchard <mpp@mpp.pro-ns.net> MFC after: 3 days
* It was possible for an unprivileged user to tie up the passwordCrist J. Clark2002-03-183-25/+64
| | | | | | | | | | | | | | | | information (no one else can vipw(8), chpass(1), or even passwd(1)), either on purpose or by accident, until an administrator manually intervened. Instead, do not lock the master.passwd file while a user is editing his information. But once we go to write the new information, check that the modified user's information has not changed in the password database since we started. Abort the changes if it has. Add a $FreeBSD$ to pw_copy.h. PR: i386/35816 Obtained from: NetBSD MFC after: 1 week
* Bring a comment in line with the code, and fix some spelling errorsDima Dorfman2002-03-091-4/+3
| | | | | | | while I'm here. PR: 35394 Submitted by: andrew@ugh.net.au
* Merge a duplicate description of the -L option into the first one.Giorgos Keramidas2002-03-081-10/+2
| | | | | PR: docs/34782 MFC after: 1 week
* Remove a bogus cast.Dag-Erling Smørgrav2002-03-061-1/+1
|
* #include <stddef.h> for the definition of NULL instead of depending onBruce Evans2002-02-251-1/+3
| | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
* 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.
* ANSIfy and remove some dead code.Dag-Erling Smørgrav2002-02-061-23/+13
| | | | Sponsored by: DARPA, NAI Labs
* Apply the following mechanical transformations in preparation forDag-Erling Smørgrav2002-02-062-9/+9
| | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
* The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacksAlfred Perlstein2002-02-051-5/+19
| | | | | | | | | | | | | were removed and replaced them with clnt_tp_create, now the af_local support is fixed. I also removed the hack how rpcinfo contacted rpcbind, now we can relay on clnt_tp_create create the client-handle for us. Only rpcbind itself needs a hardcoded socket-path. Submitted by: mbr Also add $FreeBSD
* ANSIfy and constify.Dag-Erling Smørgrav2002-02-051-17/+15
| | | | Sponsored by: DARPA, NAI Labs
* Fix SCM ID's.David E. O'Brien2002-02-011-6/+4
|
* 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.
* Use correct mode for temporary file.Jacques Vidrine2001-12-201-1/+1
| | | | Reported by: ryan beasley <ryanb@goddamnbastard.org>
* Correct some egregious style bugs.Dag-Erling Smørgrav2001-12-041-13/+21
|
* Add a missing error check. This fixes a bug that would cause pwd_mkdb toDag-Erling Smørgrav2001-12-041-1/+2
| | | | | | | | | dump core if invoked with an input file that looks like a password file but isn't (e.g. /etc/group). PR: 32378 Submitted by: Maxim Konovalov <maxim@macomnet.ru> MFC after: 1 week
* Change rmskey() to rmopie() - we don't have skey anymoreAndrey A. Chernov2001-10-191-6/+6
|
* Add __FBSDID()s to libutilMatthew Dillon2001-09-303-6/+8
|
* 1) Back out ~/.login_conf disableAndrey A. Chernov2001-09-251-6/+5
| | | | 2) Pick only "me" class from ~/.login_conf as documented
* Disable per-user .login_conf support due to incorrect merging of localRobert Watson2001-09-161-0/+3
| | | | | | and globaly settings. An alternative implementation will be developed. Reported by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl>