]> git.cameronkatri.com Git - pw-darwin.git/log
pw-darwin.git
18 years agoNote the naming convention of files in share/skel and explain the "dot"
Tom Rhodes [Mon, 9 Oct 2006 17:57:40 +0000 (17:57 +0000)]
Note the naming convention of files in share/skel and explain the "dot"
prefix is removed.

PR: 103828

18 years agoMarkup fixes.
Ruslan Ermilov [Fri, 29 Sep 2006 17:57:04 +0000 (17:57 +0000)]
Markup fixes.

18 years agoFix bug introduced in rev 1.23:
Dmitry Morozovsky [Mon, 25 Sep 2006 15:06:24 +0000 (15:06 +0000)]
Fix bug introduced in rev 1.23:

pw_equal does not check crypted password field, so one cannot change
crypted password keeping other fields intact.

Approved by: des
MCF after: 3 days

18 years agoo Fix groupadd getopt line and make 'pw groupadd -o' work.
Maxim Konovalov [Mon, 18 Sep 2006 14:00:39 +0000 (14:00 +0000)]
o Fix groupadd getopt line and make 'pw groupadd -o' work.

PR: bin/100684
Submitted by: Devon H. O'Dell
MFC after: 3 weeks

18 years agoMinor comment fix.
Thomas Quinot [Fri, 8 Sep 2006 08:14:32 +0000 (08:14 +0000)]
Minor comment fix.

18 years ago(pw_copy): Handle the case of a malformed line in master.passwd
Thomas Quinot [Mon, 4 Sep 2006 15:09:21 +0000 (15:09 +0000)]
(pw_copy): Handle the case of a malformed line in master.passwd
 (copy it silently, do not dereference NULL pointer).

PR:             bin/102848
Reviewed by:    security-officer (cperciva)
MFC after:      1 week

18 years agoAdd adding_user.8 to SEE ALSO, note that usernames may contain any character
Tom Rhodes [Wed, 7 Jun 2006 04:58:54 +0000 (04:58 +0000)]
Add adding_user.8 to SEE ALSO, note that usernames may contain any character
but not being with a hyphen, similar to adding_user.8.

PR: 35732

18 years agoReimplementation of world/kernel build options. For details, see:
Ruslan Ermilov [Fri, 17 Mar 2006 18:54:44 +0000 (18:54 +0000)]
Reimplementation of world/kernel build options.  For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)

18 years agoPOSIXed strtoll() (and ours one too) can set errno to EINVAL, so check
Andrey A. Chernov [Tue, 14 Mar 2006 19:53:03 +0000 (19:53 +0000)]
POSIXed strtoll() (and ours one too) can set errno to EINVAL, so check
it first.

Approved by:    andre

18 years agoImport of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)
Andre Oppermann [Tue, 14 Mar 2006 16:57:30 +0000 (16:57 +0000)]
Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)
providing proper error checking and other improvements.

Obtained from: OpenBSD
Requested by: flz (to port Open[BGP|OSPF]D)
MFC after: 3 days

18 years agoAdd utility functions for checking if a given kernel module is loaded,
Dag-Erling Smørgrav [Sat, 18 Feb 2006 11:25:28 +0000 (11:25 +0000)]
Add utility functions for checking if a given kernel module is loaded,
and loading it.

18 years agoHonour the "uuid" directive in adduser.conf
Matteo Riondato [Sun, 22 Jan 2006 18:37:51 +0000 (18:37 +0000)]
Honour the "uuid" directive in adduser.conf

PR: conf/87914
Approved by: philip (mentor)
MFC after: 3 days

19 years agoAdd a family of functions for reliable pidfiles handling.
Pawel Jakub Dawidek [Wed, 24 Aug 2005 17:21:38 +0000 (17:21 +0000)]
Add a family of functions for reliable pidfiles handling.

Idea from: jmg
Discussed on: arch@

19 years agoCross-reference pw(8) into chpass(1), passwd(1), and vipw(8).
Sean Chittenden [Tue, 2 Aug 2005 21:38:03 +0000 (21:38 +0000)]
Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).

19 years agoChange /home symbolic link, so it will point to usr/home instead of /usr/home.
Pawel Jakub Dawidek [Sun, 31 Jul 2005 08:25:53 +0000 (08:25 +0000)]
Change /home symbolic link, so it will point to usr/home instead of /usr/home.

Previous symlink was confusing:

# cd /jails/virtual_system_1/home
# realpath .
/usr/home

...and slower.

OK'ed by: rwatson, phk

19 years agoFix a particularly egregious grammar error.
Adam Weinberger [Tue, 24 May 2005 04:50:07 +0000 (04:50 +0000)]
Fix a particularly egregious grammar error.

Approved by: wpaul
MFC after: 1 day

19 years ago - Act according to the documentation (man page):
Robert Drehmel [Thu, 28 Apr 2005 12:44:02 +0000 (12:44 +0000)]
 - Act according to the documentation (man page):
   When adding users from a preformatted file, do not exit
   silently when empty lines or lines starting with a '#'
   are encountered - ignore them instead.
 - Fix a spelling error in a comment.

PR: bin/80058

19 years agoProperly spell default in a comment.
Tom Rhodes [Fri, 22 Apr 2005 23:11:57 +0000 (23:11 +0000)]
Properly spell default in a comment.

19 years agoRemove unused variables.
Stefan Farfeleder [Sat, 9 Apr 2005 14:59:10 +0000 (14:59 +0000)]
Remove unused variables.

19 years agoThe variable `arglist' has internal linkage in pw.c, don't declare it as extern
Stefan Farfeleder [Thu, 10 Feb 2005 09:05:27 +0000 (09:05 +0000)]
The variable `arglist' has internal linkage in pw.c, don't declare it as extern
here.

20 years agoSort sections.
Ruslan Ermilov [Tue, 18 Jan 2005 20:02:45 +0000 (20:02 +0000)]
Sort sections.

20 years agoSort sections.
Ruslan Ermilov [Tue, 18 Jan 2005 13:43:56 +0000 (13:43 +0000)]
Sort sections.

20 years agoAdded the EXIT STATUS section where appropriate.
Ruslan Ermilov [Mon, 17 Jan 2005 07:44:44 +0000 (07:44 +0000)]
Added the EXIT STATUS section where appropriate.

20 years agoMore NO_NIS cleanup: LINKS and MLINKS
Andrey A. Chernov [Wed, 29 Dec 2004 08:13:20 +0000 (08:13 +0000)]
More NO_NIS cleanup: LINKS and MLINKS

20 years agoGrammar in a comment.
Ruslan Ermilov [Sat, 18 Dec 2004 12:31:12 +0000 (12:31 +0000)]
Grammar in a comment.

20 years agoAdd knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
Bjoern A. Zeeb [Sat, 13 Nov 2004 20:40:32 +0000 (20:40 +0000)]
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on  no NIS support and related programs will be built.

Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks

20 years agoDon't rely on NULL being a pointer, add a cast before passing it to a variadic
Stefan Farfeleder [Sun, 3 Oct 2004 14:40:27 +0000 (14:40 +0000)]
Don't rely on NULL being a pointer, add a cast before passing it to a variadic
function.

20 years agoIn fullpath_from_shell(), move the nologin detection before the cat | while
Peter Pentchev [Thu, 23 Sep 2004 13:09:42 +0000 (13:09 +0000)]
In fullpath_from_shell(), move the nologin detection before the cat | while
loop to avoid an incorrect display of the nologin path twice.

PR: 71786
Submitted by: Andrew Hayden <andrew.hayden@gmail.com>
Reviewed by: mtm
MFC after: 3 days

20 years agoAlso, match the full path to the special nologin shell.
Mike Makonnen [Sat, 28 Aug 2004 14:32:10 +0000 (14:32 +0000)]
Also, match the full path to the special nologin shell.
Previously, it would recognize it as a valid shell only
if the basename (nologin) was specified. Now, it will
recognize both the basename and the full path.

NOTE: The full path as adduser(8) understands it is /usr/sbin/nologin.
      There is a symlink, /sbin/nologin, but that's deprecated and
      only there for backwards compatibility.

20 years agoRemove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).
Philippe Charnier [Mon, 26 Jul 2004 19:49:29 +0000 (19:49 +0000)]
Remove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).

20 years agoMechanically kill hard sentence breaks.
Ruslan Ermilov [Fri, 2 Jul 2004 23:13:00 +0000 (23:13 +0000)]
Mechanically kill hard sentence breaks.

20 years agoMechanically kill hard sentence breaks.
Ruslan Ermilov [Fri, 2 Jul 2004 22:22:35 +0000 (22:22 +0000)]
Mechanically kill hard sentence breaks.

20 years agoUse strlcpy(3) to replace the idiomatic
Robert Drehmel [Thu, 17 Jun 2004 14:07:16 +0000 (14:07 +0000)]
Use strlcpy(3) to replace the idiomatic

  strncpy(d, s, l);
  d[l - 1] = '\0';

statements.

20 years agoFix a bug which occurred when the home directory given by the
Robert Drehmel [Thu, 17 Jun 2004 10:29:12 +0000 (10:29 +0000)]
Fix a bug which occurred when the home directory given by the
-d option was equal to the one already saved and which caused
the pw utility to avoid updating values passed by other options
processed before the -d option in the code path.

Spotted by: Richard Caley <rjc@interactive.co.uk>

20 years agoAssorted markup, grammar, and spelling fixes.
Ruslan Ermilov [Sun, 13 Jun 2004 18:03:44 +0000 (18:03 +0000)]
Assorted markup, grammar, and spelling fixes.

20 years agoAdd note that rmuser will clean up any IPC mechanisms owned by the user.
Christian S.J. Peron [Tue, 8 Jun 2004 14:52:55 +0000 (14:52 +0000)]
Add note that rmuser will clean up any IPC mechanisms owned by the user.

Approved by: bmilekic (mentor)

20 years agoAccept full path names in addition to base names for shells.
Mike Makonnen [Sun, 6 Jun 2004 17:55:55 +0000 (17:55 +0000)]
Accept full path names in addition to base names for shells.

Make explicit in the documentation that valid shells need to be
supplied only if the -S option is not given.

20 years agoFixed a typo.
Ruslan Ermilov [Fri, 4 Jun 2004 19:21:26 +0000 (19:21 +0000)]
Fixed a typo.

20 years agoAdd humanize_number(3) to libutil for formating numbers into a human
Pawel Jakub Dawidek [Mon, 24 May 2004 22:19:27 +0000 (22:19 +0000)]
Add humanize_number(3) to libutil for formating numbers into a human
readable form.

Obtained from: NetBSD

20 years agoDon't depend on NULL's expansion being a pointer, cast it before it is passed
Stefan Farfeleder [Tue, 18 May 2004 15:53:58 +0000 (15:53 +0000)]
Don't depend on NULL's expansion being a pointer, cast it before it is passed
to variadic functions.

Approved by: das (mentor)

20 years agoBring the description for login_getclassbyname in sync with the function's
Diomidis Spinellis [Tue, 11 May 2004 11:05:26 +0000 (11:05 +0000)]
Bring the description for login_getclassbyname in sync with the function's
arguments.  The function has as a second argument a struct passwd * pointer,
not a directory name.

MFC after: 2 weeks

20 years agoThis manual page will not first appear in 4.10 as RELENG_4 has a different
Tom Rhodes [Wed, 7 Apr 2004 22:16:04 +0000 (22:16 +0000)]
This manual page will not first appear in 4.10 as RELENG_4 has a different
version of the adduser utility.

Noticed by: simon

20 years agoFix today's faux pas by:
Tom Rhodes [Tue, 30 Mar 2004 22:31:22 +0000 (22:31 +0000)]
Fix today's faux pas by:

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

20 years agoAdd an adduser.conf manual page.
Tom Rhodes [Tue, 30 Mar 2004 21:50:42 +0000 (21:50 +0000)]
Add an adduser.conf manual page.
Hook it to the build in Makefile.
Xref from adduser.8.
Update adduser.8's BUGS section.
Bump the date on adduser.8.

20 years agoSychronize with reality: nologin(8) is now in /usr/sbin
Colin Percival [Tue, 30 Mar 2004 19:24:56 +0000 (19:24 +0000)]
Sychronize with reality: nologin(8) is now in /usr/sbin

Reminded by: trhodes

20 years agoo Add an -S option to not attempt to ascertain the validity of a shell.
Mike Makonnen [Tue, 16 Mar 2004 13:46:29 +0000 (13:46 +0000)]
o Add an -S option to not attempt to ascertain the validity of a shell.
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.

20 years agoShift file locking to source file instead of temp file. This fixes
Ken Smith [Mon, 8 Mar 2004 20:31:37 +0000 (20:31 +0000)]
Shift file locking to source file instead of temp file.  This fixes
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

20 years agoTypo fix.
Marc Fonvieille [Wed, 3 Mar 2004 09:15:07 +0000 (09:15 +0000)]
Typo fix.

PR: docs/63677
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
MFC after: 1 week

20 years agoMake rmuser now also remove ipc resources. Also, fix a few minor
Jens Schweikhardt [Sun, 29 Feb 2004 09:54:15 +0000 (09:54 +0000)]
Make rmuser now also remove ipc resources. Also, fix a few minor
shell style problems (superfluous backslashes at EOL).

PR: 55980
Submitted by: Chris S.J.Peron <maneo@bsdpro.com>
MFC after: 2 weeks

20 years agoAdd the clean_environment call to libutil.h also.
Tim Kientzle [Thu, 26 Feb 2004 22:44:11 +0000 (22:44 +0000)]
Add the clean_environment call to libutil.h also.

MFC after: 2 weeks

21 years agoRemove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, make
Philippe Charnier [Sun, 18 Jan 2004 21:46:39 +0000 (21:46 +0000)]
Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, make
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

21 years agoadd missing endusershell() call. Original version was incorrect.
Philippe Charnier [Sun, 18 Jan 2004 21:33:25 +0000 (21:33 +0000)]
add missing endusershell() call. Original version was incorrect.
PR: bin/2442
Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>

21 years agoAdd a `-H <fd>' option that is like `-h <fd>', but accepts an already
Ian Dowse [Sun, 11 Jan 2004 18:28:08 +0000 (18:28 +0000)]
Add a `-H <fd>' option that is like `-h <fd>', but accepts an already
encrypted password on the specified file descriptor.

PR: bin/22033
MFC after: 2 weeks

21 years ago(mostly) Clean up some const warnings here. The code takes some liberties
Peter Wemm [Sun, 26 Oct 2003 03:51:47 +0000 (03:51 +0000)]
(mostly) Clean up some const warnings here.  The code takes some liberties
because it is the originator of various const strings and knows that they
came from malloc.

21 years agoANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
Mark Murray [Sat, 18 Oct 2003 10:04:16 +0000 (10:04 +0000)]
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.

21 years agomdoc(7): Properly mark C headers.
Ruslan Ermilov [Wed, 10 Sep 2003 19:24:35 +0000 (19:24 +0000)]
mdoc(7): Properly mark C headers.

21 years agomdoc(7): Use the new feature of the .In macro.
Ruslan Ermilov [Mon, 8 Sep 2003 19:57:22 +0000 (19:57 +0000)]
mdoc(7): Use the new feature of the .In macro.

21 years agoDo not compare unsigned int values with ULONG_MAX. The comparison is
Alexander Kabaev [Fri, 11 Jul 2003 05:47:05 +0000 (05:47 +0000)]
Do not compare unsigned int values with ULONG_MAX. The comparison is
always false on 64bit platforms and GCC 3.3.1 issues warning there.

21 years agoTypo.
Mike Makonnen [Tue, 24 Jun 2003 15:20:43 +0000 (15:20 +0000)]
Typo.
This has worked so far because the variable was empty by default.

Submitted by: Kostyuk Oleg <cub@cub.org.ua>

21 years agos/warn/info/
Mike Makonnen [Fri, 20 Jun 2003 19:36:56 +0000 (19:36 +0000)]
s/warn/info/

21 years agoAdd support for the special shell nologin.
Mike Makonnen [Fri, 20 Jun 2003 19:23:55 +0000 (19:23 +0000)]
Add support for the special shell nologin.

Prodded by: mikeh

21 years agoUpdate my email address.
Mike Makonnen [Fri, 20 Jun 2003 16:53:36 +0000 (16:53 +0000)]
Update my email address.

21 years agoDon't forget the -r on the second password prompt.
Mike Makonnen [Fri, 20 Jun 2003 16:52:06 +0000 (16:52 +0000)]
Don't forget the -r on the second password prompt.

PR: bin/53550

21 years agoTidy up. Sort headers.
Mark Murray [Sat, 14 Jun 2003 18:42:37 +0000 (18:42 +0000)]
Tidy up. Sort headers.

21 years agoThe .Xr utility. Spelling. Put NIS under .Tn
Philippe Charnier [Sun, 8 Jun 2003 14:28:38 +0000 (14:28 +0000)]
The .Xr utility. Spelling. Put NIS under .Tn

21 years agoAdd information about the log file.
Tom Rhodes [Thu, 8 May 2003 00:28:36 +0000 (00:28 +0000)]
Add information about the log file.

PR: 35575
Submitted by: "Simon L. Nielsen" <simon@nitro.dk> (original version)

21 years agoMake GCC 3.3 happy with rcsid[], sccs[], and copyright[].
David E. O'Brien [Sat, 3 May 2003 19:44:46 +0000 (19:44 +0000)]
Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].

21 years agoBrucify.
Dag-Erling Smørgrav [Thu, 10 Apr 2003 10:26:18 +0000 (10:26 +0000)]
Brucify.

21 years agoCorrectly detect the case where a password entry was changed while we were
Dag-Erling Smørgrav [Wed, 9 Apr 2003 18:20:51 +0000 (18:20 +0000)]
Correctly detect the case where a password entry was changed while we were
preparing to edit it.

PR: bin/50563

21 years agoAvoid clobbering the gecos field, as we intend to use the original later.
Dag-Erling Smørgrav [Wed, 9 Apr 2003 18:18:42 +0000 (18:18 +0000)]
Avoid clobbering the gecos field, as we intend to use the original later.

PR: bin/50563

21 years agoApply the correct fix for bin/50679: don't mess around with process groups
Dag-Erling Smørgrav [Wed, 9 Apr 2003 16:39:47 +0000 (16:39 +0000)]
Apply the correct fix for bin/50679: don't mess around with process groups
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

21 years agoBand-aid for the "^C kills the editor" problem. I haven't yet found the
Dag-Erling Smørgrav [Tue, 8 Apr 2003 18:04:30 +0000 (18:04 +0000)]
Band-aid for the "^C kills the editor" problem.  I haven't yet found the
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

21 years agostyle.Makefile(5)
David E. O'Brien [Fri, 4 Apr 2003 17:49:21 +0000 (17:49 +0000)]
style.Makefile(5)

21 years agoDocument the -g option in the usage message.
Mike Makonnen [Sun, 23 Mar 2003 23:06:44 +0000 (23:06 +0000)]
Document the -g option in the usage message.

Approved by: markm (mentor)(implicit)

21 years agoAdd a -g option to specify a default login group.
Mike Makonnen [Thu, 20 Mar 2003 16:36:03 +0000 (16:36 +0000)]
Add a -g option to specify a default login group.

Approved by: markm (mentor)(implicit)

21 years agoo initialize a couple of local flags so the user can re-edit groups
Mike Makonnen [Wed, 19 Mar 2003 08:07:15 +0000 (08:07 +0000)]
o initialize a couple of local flags so the user can re-edit groups
  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)

21 years agoMake pw_edit() use /bin/sh to interpret the EDITOR environment
David Schultz [Mon, 17 Mar 2003 02:12:55 +0000 (02:12 +0000)]
Make pw_edit() use /bin/sh to interpret the EDITOR environment
variable.

PR: 48748
Reviewed by: mike (mentor)

21 years agomdoc(7) police: Scheduled sweep.
Ruslan Ermilov [Mon, 24 Feb 2003 22:53:26 +0000 (22:53 +0000)]
mdoc(7) police: Scheduled sweep.

21 years agoUpdate copyright.
Mike Makonnen [Sun, 16 Feb 2003 18:06:04 +0000 (18:06 +0000)]
Update copyright.

21 years agoCondense the output to one line per removed user. For user's who
Mike Makonnen [Sun, 16 Feb 2003 18:04:06 +0000 (18:04 +0000)]
Condense the output to one line per removed user. For user's who
want the more verbose version, there's a -v option.

Approved by: markm (mentor)

21 years agoThere is no sense to use random random() and arc4random() in the same program.
Andrey A. Chernov [Tue, 11 Feb 2003 02:17:11 +0000 (02:17 +0000)]
There is no sense to use random random() and arc4random() in the same program.
Switch to arc4random() completely.

21 years agoRevisit the shell special characters issue and settle it once-and-forall.
Mike Makonnen [Sun, 9 Feb 2003 18:29:09 +0000 (18:29 +0000)]
Revisit the shell special characters issue and settle it once-and-forall.
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>

21 years agoChange the behaviour of adduser to match the previous incarnation a little more.
Adrian Chadd [Sat, 8 Feb 2003 08:04:53 +0000 (08:04 +0000)]
Change the behaviour of adduser to match the previous incarnation a little more.

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

21 years agoBetter gender-neutral language.
Tony Finch [Tue, 4 Feb 2003 11:12:36 +0000 (11:12 +0000)]
Better gender-neutral language.

Submitted by: sheldonh

21 years agoThis is just a forced-commit to note that the previous commit addresses
Garance A Drosehn [Tue, 28 Jan 2003 01:35:52 +0000 (01:35 +0000)]
This is just a forced-commit to note that the previous commit addresses
PR 28773 (not 28733!).  I have closed both PR 28773 and PR 46890.

21 years agoChanges so the 'pw' command will allow '$' as the last character in a userid
Garance A Drosehn [Tue, 28 Jan 2003 01:21:57 +0000 (01:21 +0000)]
Changes so the 'pw' command will allow '$' as the last character in a userid
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.

21 years agoback out logging to /var/log/adduser
Max Khon [Fri, 24 Jan 2003 02:05:51 +0000 (02:05 +0000)]
back out logging to /var/log/adduser
(/usr/sbin/pw already logs to /var/log/userlog)

21 years agoIn interactive mode, ask the user if he/she wants to add another
Mike Makonnen [Fri, 24 Jan 2003 00:24:26 +0000 (00:24 +0000)]
In interactive mode, ask the user if he/she wants to add another
user and re-run interactive questions or quit depending on the
answer.

Submitted by: Scot Hetzel <hetzels@westbend.net>
Approved by: markm (mentor)

21 years agoexpr foo -> $((foo))
Max Khon [Thu, 23 Jan 2003 20:18:21 +0000 (20:18 +0000)]
expr foo -> $((foo))

21 years ago- restore an ability to write log of added users (default to
Max Khon [Thu, 23 Jan 2003 20:07:40 +0000 (20:07 +0000)]
- restore an ability to write log of added users (default to
/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)

21 years agoDo not loose trailing spaces when printing prompt messages.
Max Khon [Thu, 23 Jan 2003 19:58:16 +0000 (19:58 +0000)]
Do not loose trailing spaces when printing prompt messages.

21 years agoDo not expose password if it is empty and PWF_STANDARD format is requested
Max Khon [Thu, 23 Jan 2003 19:51:48 +0000 (19:51 +0000)]
Do not expose password if it is empty and PWF_STANDARD format is requested

MFC after: 1 week

21 years ago*blush*
Mike Makonnen [Thu, 23 Jan 2003 01:57:30 +0000 (01:57 +0000)]
*blush*
While I'm here properly quote all the other input I neglected
to quote.

Approved by: markm (mentor)(implicit)

22 years agoDon't forget to properly quote input.
Mike Makonnen [Tue, 21 Jan 2003 12:11:35 +0000 (12:11 +0000)]
Don't forget to properly quote input.

Approved by: markm (mentor)(implicit)
Submitted by: Robin Breathe <robin@isometry.net>

22 years agodo not loose trailing space when asking uid
Max Khon [Mon, 20 Jan 2003 17:55:31 +0000 (17:55 +0000)]
do not loose trailing space when asking uid

22 years agoStyle cleanup.
David E. O'Brien [Mon, 30 Dec 2002 09:46:58 +0000 (09:46 +0000)]
Style cleanup.

22 years agoMake WARNS=5 clean.
David E. O'Brien [Mon, 30 Dec 2002 09:45:26 +0000 (09:45 +0000)]
Make WARNS=5 clean.

Tested on: sparc64, Athlon[32]

22 years agoenglish(4) police.
Jens Schweikhardt [Fri, 27 Dec 2002 12:15:40 +0000 (12:15 +0000)]
english(4) police.

22 years agomdoc(7) police: Deal with self-xrefs.
Ruslan Ermilov [Tue, 24 Dec 2002 13:41:48 +0000 (13:41 +0000)]
mdoc(7) police: Deal with self-xrefs.

22 years agomdoc(7) police: more `The .Nm utility' + markup nit.
Ruslan Ermilov [Mon, 23 Dec 2002 15:08:01 +0000 (15:08 +0000)]
mdoc(7) police: more `The .Nm utility' + markup nit.