Dima Dorfman
d5a3b1ed7d
Lists follow a colon, not a semicolon.
2002-06-30 04:51:04 +00:00
SADA Kenji
f587582238
`pw useradd' could be used with -w without -D option.
...
PR: docs/39770
Submitted by: sada
Approved by: dd
2002-06-26 05:09:12 +00:00
David Malone
9836536581
Print a long with %ld not %d. (We possibly should be using %j here, but
...
that can be fixed when the many other warnings here are being fixed.)
PR: 39741
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 1 week
2002-06-24 11:33:17 +00:00
Dima Dorfman
466c257c1f
In the words of the submitter:
...
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>
2002-04-05 08:39:31 +00:00
Dima Dorfman
4731d0764a
Document the -7 option for usershow.
...
PR: 36735
Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
2002-04-05 08:31:17 +00:00
Giorgos Keramidas
16b4ad5200
Merge a duplicate description of the -L option into the first one.
...
PR: docs/34782
MFC after: 1 week
2002-03-08 00:36:36 +00:00
Jacques Vidrine
2b0dfba578
Use correct mode for temporary file.
...
Reported by: ryan beasley <ryanb@goddamnbastard.org>
2001-12-20 16:03:04 +00:00
Andrey A. Chernov
b84320f22e
Change rmskey() to rmopie() - we don't have skey anymore
2001-10-19 10:45:14 +00:00
Dima Dorfman
2be196f14c
For new users, create the home directory before sending the welcome
...
mail, if configured to do so. Some sites have setups where the user's
mail is delivered to their home directory, so sending mail before is
exists didn't work.
PR: 29892
2001-09-03 14:12:42 +00:00
Dima Dorfman
912e378232
Unbreak group operations by reverting previous delta which removed the
...
assignment of `l' in `gr_update' to the return value of snprintf. It
claimed to have fixed the case where snprintf returned -1--in fact, it
broke the entire routine. Not setting `l' here causes fileupdate() to
invariably fail with EINVAL because it does its own check to assert
that the parameter isn't -1.
2001-08-30 06:32:17 +00:00
Joerg Wunsch
5c6a35107b
Properly initialize the random number generator in pw_getpass().
...
Right now, the automatically generated passwords have been rather
predictable. :-(
MFC after: 1 day
2001-08-21 13:33:20 +00:00
Joerg Wunsch
19c6903f17
Fix a typo in a variable name that made pw(8) coredump when using
...
USE_MD5RAND.
MFC after: 2 days
2001-08-21 10:29:01 +00:00
Brian Somers
2313781df2
Handle snprintf() returning < 0 (not just -1)
...
MFC after: 2 weeks
2001-08-20 15:09:34 +00:00
Brian Somers
36c1612b5e
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 13:24:39 +00:00
David E. O'Brien
90e655ea4e
Perform a major cleanup of the usr.sbin Makefiles.
...
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
David E. O'Brien
ac24b049cc
Remove GCC'isms in CFLAGS.
2001-07-20 04:23:13 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Dima Dorfman
70d51341bf
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Ruslan Ermilov
ce9c7e7f4b
Don't override the default BINMODE.
...
Submitted by: bde
2001-07-05 15:25:05 +00:00
Kris Kennaway
cab0fb4e48
Fix a harmless format string bogon and mark a function as __printflike().
...
There is still one instance of non-constant format string use inside that
function, but it's hard to fix.
MFC after: 1 week
2001-07-05 08:01:15 +00:00
Dima Dorfman
2694efd413
Include missing header files which define functions for which gcc has
...
builtints (e.g., exit, strcmp).
2001-06-24 20:25:23 +00:00
Dima Dorfman
1ab562901c
CND has been unused for two years, and RND has been unused for five
...
years; remove them from CFLAGS.
PR: 23712
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
2001-06-19 00:39:29 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Andrey A. Chernov
b01e74b72e
Use %c for expire/change dates
2001-03-21 13:46:09 +00:00
Ruslan Ermilov
08657612d8
mdoc(7) police: simplify bogus ``.Ql Fl'' constructs.
2001-03-16 14:11:41 +00:00
Dima Dorfman
ed6fd55a59
Document the lock and unlock commands. This fixes a segmentation fault.
...
PR: 25187
Approved by: nik
2001-03-14 03:24:30 +00:00
Dima Dorfman
e468afb48d
Document the lock and unlock commands.
...
PR: 25187
Approved by: nik
2001-03-14 03:22:28 +00:00
Kris Kennaway
27540537e8
Switch from using rand() or random() to a stronger, more appropriate PRNG
...
(random() or arc4random())
Reviewed by: bde
2001-03-05 02:15:38 +00:00
Ruslan Ermilov
610a5778c5
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
Ruslan Ermilov
1bfea903ed
Prepare for mdoc(7)NG.
2001-01-16 09:39:23 +00:00
Peter Wemm
e311d7d06c
Fix typo: s/memberhip/membership/
...
Submitted by: Peter Avalos <pavalos@theshell.com>
2001-01-02 04:01:59 +00:00
Ben Smithurst
d0d78e1303
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
...
structure internals.
Reviewed by: markm
2000-12-29 18:04:54 +00:00
Doug Barton
fc308a5491
Make the comment generated in /etc/pw.conf match reality
...
PR: misc/23451
Submitted by: Ben Rosengart, ben@narcissus.net
2000-12-18 01:35:56 +00:00
David E. O'Brien
1a37aa566b
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Ruslan Ermilov
e97407b4f2
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
Brian Feldman
04c9749ff0
Add working and easy crypt(3)-switching. Yes, we need a whole new API
...
for crypt(3) by now. In any case:
Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).
The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)
Reviewed by: peter
2000-08-22 02:15:54 +00:00
David Nugent
d37861da7a
Move test for -w flag outside of the code dealing with -D (defaults).
...
This should cause -w's argument not to be ignored in the usermod case,
so it will affect modification of the user's password instead of using
the pw.conf (or internal default=no '*') password method.
PR: bin/11168
2000-07-20 05:11:56 +00:00
David Nugent
f707b0d536
Allow -g with an empty argument in the -D case. This allows -g "" to set
...
no default group (and thus fall back to user-based groups instead).
PR: bin/5717
2000-07-20 04:37:00 +00:00
David Nugent
e4ac984548
Fix another missed case where usermod would not set the "modified" flag:
...
-h - to set no password. But only mark modified if the account is not
already locked (i.e. first char of crypt password field is '*').
PR: bin/19999
2000-07-20 00:09:29 +00:00
David Nugent
670eb236c0
Catch up to the fact that we now have tcsh in the tree.
2000-07-16 01:46:26 +00:00
David Nugent
1994f5c7aa
Support propogation of file flags when building a homedir from the
...
skeleton directory.
sprintf() -> snprintf() cleanup.
PR: bin/8756
Submitted by: "Nickolay N. Dudorov" <nnd@itfs.nsk.su>
2000-07-13 23:52:49 +00:00
David Nugent
affc28f940
Fix breakage introduced by bypassing update for additional 'mod'
...
functionality when nothing had actually changed; -d changes would
not set the 'something had changed flag'. Actually test for a
change in homedir.
PR: bin/19649
2000-07-03 12:13:10 +00:00
David Nugent
34b4610b7b
Don't dereference NULL in the userdel case.
2000-06-26 01:11:44 +00:00
Andrey A. Chernov
39610c7229
Localize ctype too.
...
Add weekday to showuser expired fields
2000-06-24 13:36:13 +00:00
Andrey A. Chernov
e7161f368a
Localize time/date.
...
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.
2000-06-22 16:48:41 +00:00
David Nugent
6b13b96dad
Fix obvious braino in assignment statement. usermod -g should work again.
...
PR: 17877
Submitted by: pius@zyan.com
2000-06-18 02:48:56 +00:00
David Nugent
c4e667b9d7
Be a little more strict about handling command line args. This allows user and
...
group names like 'help' 'mod' 'user' 'group' etc. to work correctly without
requiring the -n style invocation.
PR: misc/17069
2000-06-18 02:39:17 +00:00
David Nugent
25fa020ea5
Fix a long-standing bug in the rename case previously masked by another bug
...
just fixed in .db file updating.
2000-06-18 02:18:15 +00:00
David Nugent
f52bcb0a5c
Second and hopefully final fix to .db sync when renaming a user; we must run
...
a full reindex in this case to remove the old record. #ifdef -u capability
since this is available on FreeBSD only.
PR: bin/16418
Problem pointed out by: Masachika ISHIZUKA <ishizuka@ish.org>
2000-06-18 02:16:07 +00:00