summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Accept full path names in addition to base names for shells.Mike Makonnen2004-06-062-11/+16
| | | | | Make explicit in the documentation that valid shells need to be supplied only if the -S option is not given.
* Fixed a typo.Ruslan Ermilov2004-06-041-2/+2
|
* Add humanize_number(3) to libutil for formating numbers into a humanPawel Jakub Dawidek2004-05-241-0/+11
| | | | | | readable form. Obtained from: NetBSD
* Don't depend on NULL's expansion being a pointer, cast it before it is passedStefan Farfeleder2004-05-181-3/+4
| | | | | | to variadic functions. Approved by: das (mentor)
* Bring the description for login_getclassbyname in sync with the function'sDiomidis Spinellis2004-05-111-3/+4
| | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks
* This manual page will not first appear in 4.10 as RELENG_4 has a differentTom Rhodes2004-04-071-1/+1
| | | | | | version of the adduser utility. Noticed by: simon
* Fix today's faux pas by:Tom Rhodes2004-03-301-16/+5
| | | | | | | | Removing the -compact option passed to .Bl macro to avoid useless .Pp macros; Adding a missing period; Using .Xr with .Nd since makewhatis(1) has no support for cases where the Xref is absent. Informed by: ru
* Add an adduser.conf manual page.Tom Rhodes2004-03-303-3/+211
| | | | | | | Hook it to the build in Makefile. Xref from adduser.8. Update adduser.8's BUGS section. Bump the date on adduser.8.
* Sychronize with reality: nologin(8) is now in /usr/sbinColin Percival2004-03-301-3/+3
| | | | Reminded by: trhodes
* o Add an -S option to not attempt to ascertain the validity of a shell.Mike Makonnen2004-03-162-13/+59
| | | | | | | o Add a -D option to not attempt to create the home directory. o Treat the /nonexistent home directory specially. It means the user has no home directory and it should not be created. o Update Copyright year and my email.
* Shift file locking to source file instead of temp file. This fixesKen Smith2004-03-082-8/+5
| | | | | | | | | | | data buffering issue that corrupts files if two pw(8)'s run at the same time as well as changing pw(8) so it uses the same locking mechanism as PAM, vipw(8), pwd_mkdb(8), etc. PR: bin/23501 Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su> Approved by: rwatson (mentor) MFC after: 5 days
* Typo fix.Marc Fonvieille2004-03-031-1/+1
| | | | | | PR: docs/63677 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> MFC after: 1 week
* Make rmuser now also remove ipc resources. Also, fix a few minorJens Schweikhardt2004-02-291-4/+18
| | | | | | | | shell style problems (superfluous backslashes at EOL). PR: 55980 Submitted by: Chris S.J.Peron <maneo@bsdpro.com> MFC after: 2 weeks
* Add the clean_environment call to libutil.h also.Tim Kientzle2004-02-261-0/+2
| | | | MFC after: 2 weeks
* Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, makePhilippe Charnier2004-01-184-21/+39
| | | | | | | | | | a new function dup_shell() to replace ok_shell() and make it unconditionnally strdup() its result to make the caller's code simplier. Change ok_shell() to just return an integer value suitable for tests (it was used mainly for that purpose). Do not use strdup() in the caller's code but rely on dup_shell() that will do the job for us. PR: bin/2442
* add missing endusershell() call. Original version was incorrect.Philippe Charnier2004-01-181-1/+3
| | | | | PR: bin/2442 Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
* Add a `-H <fd>' option that is like `-h <fd>', but accepts an alreadyIan Dowse2004-01-114-22/+52
| | | | | | | encrypted password on the specified file descriptor. PR: bin/22033 MFC after: 2 weeks
* (mostly) Clean up some const warnings here. The code takes some libertiesPeter Wemm2003-10-261-8/+9
| | | | | because it is the originator of various const strings and knows that they came from malloc.
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.Mark Murray2003-10-185-74/+79
|
* mdoc(7): Properly mark C headers.Ruslan Ermilov2003-09-101-1/+1
|
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
|
* Do not compare unsigned int values with ULONG_MAX. The comparison isAlexander Kabaev2003-07-111-2/+2
| | | | always false on 64bit platforms and GCC 3.3.1 issues warning there.
* Typo.Mike Makonnen2003-06-241-1/+1
| | | | | | This has worked so far because the variable was empty by default. Submitted by: Kostyuk Oleg <cub@cub.org.ua>
* s/warn/info/Mike Makonnen2003-06-201-1/+1
|
* Add support for the special shell nologin.Mike Makonnen2003-06-202-5/+44
| | | | Prodded by: mikeh
* Update my email address.Mike Makonnen2003-06-202-2/+2
|
* Don't forget the -r on the second password prompt.Mike Makonnen2003-06-201-1/+1
| | | | PR: bin/53550
* Tidy up. Sort headers.Mark Murray2003-06-142-10/+9
|
* The .Xr utility. Spelling. Put NIS under .TnPhilippe Charnier2003-06-081-11/+19
|
* Add information about the log file.Tom Rhodes2003-05-081-0/+10
| | | | | PR: 35575 Submitted by: "Simon L. Nielsen" <simon@nitro.dk> (original version)
* Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].David E. O'Brien2003-05-032-2/+3
|
* Brucify.Dag-Erling Smørgrav2003-04-101-4/+8
|
* Correctly detect the case where a password entry was changed while we wereDag-Erling Smørgrav2003-04-091-2/+7
| | | | | | preparing to edit it. PR: bin/50563
* Avoid clobbering the gecos field, as we intend to use the original later.Dag-Erling Smørgrav2003-04-091-3/+10
| | | | PR: bin/50563
* Apply the correct fix for bin/50679: don't mess around with process groupsDag-Erling Smørgrav2003-04-091-13/+19
| | | | | | | or the tty, just block selected signals in the parent like system(3) does. Many thanks to bde for his assistance in finding the correct solution. PR: bin/50679
* Band-aid for the "^C kills the editor" problem. I haven't yet found theDag-Erling Smørgrav2003-04-081-10/+6
| | | | | | | | proper way to fix this. The way this works is to prepend "exec " to the editor command to eliminate the "shell in the middle" which prevents us from properly reawakening the editor after a SIGTSTP. PR: bin/50679
* style.Makefile(5)David E. O'Brien2003-04-041-1/+1
|
* Document the -g option in the usage message.Mike Makonnen2003-03-231-0/+1
| | | | Approved by: markm (mentor)(implicit)
* Add a -g option to specify a default login group.Mike Makonnen2003-03-202-10/+22
| | | | Approved by: markm (mentor)(implicit)
* o initialize a couple of local flags so the user can re-edit groupsMike Makonnen2003-03-191-2/+8
| | | | | | | | next time the subroutine is re-entered o s/configrun/configflag/ o Make the prompt make sense if the user was creating a configuration file Approved by: markm (mentor)(implicit)
* Make pw_edit() use /bin/sh to interpret the EDITOR environmentDavid Schultz2003-03-171-2/+12
| | | | | | | variable. PR: 48748 Reviewed by: mike (mentor)
* 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)
* There is no sense to use random random() and arc4random() in the same program.Andrey A. Chernov2003-02-111-2/+1
| | | | Switch to arc4random() completely.
* 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
* This is just a forced-commit to note that the previous commit addressesGarance A Drosehn2003-01-280-0/+0
| | | | PR 28773 (not 28733!). I have closed both PR 28773 and PR 46890.
* Changes so the 'pw' command will allow '$' as the last character in a useridGarance A Drosehn2003-01-281-14/+51
| | | | | | | | | | | or group name (mainly for the benefit of samba). This pretty much rewrites he pw_checkname() routine, but should work exactly the same except for the above change, and that error messages are somewhat more informative. PR: 28733 46890 Inspired by: example patch written by Terry Lambert Reviewed by: no objections on freebsd-arch and freebsd-current MFC plans: no plans, but will do if people want it in stable.