dd
eaa6ee03b8
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
brian
8636b161b3
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
ru
88bd9429d1
Don't override the default BINMODE.
...
Submitted by: bde
2001-07-05 15:25:05 +00:00
kris
5a1251c5ff
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
dd
e3cab8dc0c
Include missing header files which define functions for which gcc has
...
builtints (e.g., exit, strcmp).
2001-06-24 20:25:23 +00:00
dd
a284c32828
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
ru
afd506414e
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ache
f55dab1d8b
Use %c for expire/change dates
2001-03-21 13:46:09 +00:00
ru
97b1481159
mdoc(7) police: simplify bogus ``.Ql Fl'' constructs.
2001-03-16 14:11:41 +00:00
dd
24b0122a84
Document the lock and unlock commands. This fixes a segmentation fault.
...
PR: 25187
Approved by: nik
2001-03-14 03:24:30 +00:00
dd
bfdb3b217b
Document the lock and unlock commands.
...
PR: 25187
Approved by: nik
2001-03-14 03:22:28 +00:00
kris
1854a6d141
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
ru
66cd8f698e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
ru
ffef081534
Prepare for mdoc(7)NG.
2001-01-16 09:39:23 +00:00
peter
ee9f6ce82c
Fix typo: s/memberhip/membership/
...
Submitted by: Peter Avalos <pavalos@theshell.com>
2001-01-02 04:01:59 +00:00
ben
aa10518020
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
dougb
1fd2c926a8
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
obrien
c2ee1dcc02
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
ru
71e2293ad4
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
green
67c40ef892
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
davidn
35b42ab19e
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
davidn
94db016d55
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
davidn
c4d081a807
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
davidn
14da5481e1
Catch up to the fact that we now have tcsh in the tree.
2000-07-16 01:46:26 +00:00
davidn
092cc1f8f9
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
davidn
93ab0f9072
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
davidn
c85586d6d2
Don't dereference NULL in the userdel case.
2000-06-26 01:11:44 +00:00
ache
659df59b0e
Localize ctype too.
...
Add weekday to showuser expired fields
2000-06-24 13:36:13 +00:00
ache
77729ceb43
Localize time/date.
...
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.
2000-06-22 16:48:41 +00:00
davidn
15756f138e
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
davidn
4a7877f9e8
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
davidn
1553afea75
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
davidn
faaa880c55
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
davidn
bb77488761
Fix db syncronization when username is changed with -l under usermod.
...
pw(8) was calling pwd_mkdb -u oldusername instead of newusername, so
the update appears to have failed until the next full pwd_mkdb
syncronization.
PR: bin/16418
2000-06-06 07:33:00 +00:00
jake
961b97d434
Back out the previous change to the queue(3) interface.
...
It was not discussed and should probably not happen.
Requested by: msmith and others
2000-05-26 02:09:24 +00:00
jake
d93fbc9916
Change the way that the queue(3) structures are declared; don't assume that
...
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
2000-05-23 20:41:01 +00:00
sheldonh
244b8ead7d
Remove more single-space hard sentence breaks.
2000-03-02 14:54:02 +00:00
sheldonh
b2240fc1c0
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 14:09:25 +00:00
davidn
1b86060031
Portability fixes for other bsd4.4 derivatives.
2000-01-15 00:20:22 +00:00
peter
d44e2d4226
Revert the libcrypt/libmd stuff back to how it was. This should not have
...
happened as it was working around problems elsewhere (ie: binutils/ld
not doing the right thing according to the ELF design). libcrypt has
been adjusted to not need the runtime -lmd. It's still not quite right
(ld is supposed to work damnit) but at least it doesn't impact all the
users of libcrypt in Marcel's cross-build model.
1999-12-18 13:55:17 +00:00
marcel
e32efbad28
Add libmd (or move it after libcrypt). We don't want the linker to be
...
smart because it will definitely get it wrong. This popped up during
cross-linking.
1999-12-16 10:55:45 +00:00
davidn
9c3494a4dc
Don't try updating the passwd file if no data has changed. This allows things
...
like "pw usermod <name> -m" to work for non-local NIS users; since no attempt
is made to update the password entry, the home directory will be created and
populated as expected without error.
1999-10-26 15:07:20 +00:00
davidn
091d630070
Add new functionality "lock" and "unlock" to provide a simple password
...
locking mechanism for users. This works by prepending the string
"*LOCKED*" to the password field in master.passwd to prevent successful
decoding.
1999-10-26 08:34:09 +00:00
davidn
297001db2a
Missed statement in password update relating to the previous change
...
to fileupdate() which prevented pwd_mkdb(1) from being run.
1999-10-26 08:30:20 +00:00
davidn
7f7ff280d1
Clean up error handling in fileupdate(), which now returns 0 on success
...
instead of a boolean. This replicated through he front-end sub-functions
relating to add, delete, modify entries in passwd & group files
Errno is now preserved so output of errc()/warnc() will be less obfuscated
by subsequent errors when reporting the problem.
Add more intelligent error handling when attempting to modify/delete NIS
entries with no corresponding local database entry.
[MFC to stable in a couple of weeks to keep both in sync]
1999-10-26 04:27:14 +00:00
sheldonh
1f6d5bd10b
Only do a full pwd_mkdb for deletions; other operations may use the -u
...
option as an optimization.
PR: 13346
Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
1999-08-30 10:35:38 +00:00
peter
efabb9ccb1
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
davidn
92f725d0a6
Remove some more warnings.
1999-07-28 12:49:34 +00:00
davidn
d70ee45d7f
Fix date parsing to allow '0' (none) date value.
1999-03-15 08:16:01 +00:00
davidn
2b92c5716f
Add the ability to print user records in unix version 7 (old) format.
1999-03-02 00:53:33 +00:00