trhodes
0fdaf2aeff
Better mdoc(7). Bump doc date.
...
Kicked by: ru
2006-10-09 19:01:02 +00:00
trhodes
3d3e3d31c4
Note the naming convention of files in share/skel and explain the "dot"
...
prefix is removed.
PR: 103828
2006-10-09 17:57:40 +00:00
maxim
4af3cb5278
o Fix groupadd getopt line and make 'pw groupadd -o' work.
...
PR: bin/100684
Submitted by: Devon H. O'Dell
MFC after: 3 weeks
2006-09-18 14:00:39 +00:00
pjd
16e9258f60
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
2005-07-31 08:25:53 +00:00
stefanf
ce3085bbfb
Remove unused variables.
2005-04-09 14:59:10 +00:00
stefanf
e1328da3d7
The variable `arglist' has internal linkage in pw.c, don't declare it as extern
...
here.
2005-02-10 09:05:27 +00:00
ru
c05985f13f
Sort sections.
2005-01-18 20:02:45 +00:00
ru
6cc4b6c220
Added the EXIT STATUS section where appropriate.
2005-01-17 07:44:44 +00:00
stefanf
d768a89209
Don't rely on NULL being a pointer, add a cast before passing it to a variadic
...
function.
2004-10-03 14:40:27 +00:00
ru
6294018a20
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
robert
0f9ac8040a
Use strlcpy(3) to replace the idiomatic
...
strncpy(d, s, l);
d[l - 1] = '\0';
statements.
2004-06-17 14:07:16 +00:00
robert
2211cbc1f6
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>
2004-06-17 10:29:12 +00:00
kensmith
7d850e0369
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
2004-03-08 20:31:37 +00:00
iedowse
94e2d83c18
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
2004-01-11 18:28:08 +00:00
ru
1c23ef339b
mdoc(7): Use the new feature of the .In macro.
2003-09-08 19:57:22 +00:00
charnier
aafcecac3c
The .Xr utility. Spelling. Put NIS under .Tn
2003-06-08 14:28:38 +00:00
trhodes
66cc770e2b
Add information about the log file.
...
PR: 35575
Submitted by: "Simon L. Nielsen" <simon@nitro.dk> (original version)
2003-05-08 00:28:36 +00:00
obrien
a920d12f89
style.Makefile(5)
2003-04-04 17:49:21 +00:00
ache
76e83c6399
There is no sense to use random random() and arc4random() in the same program.
...
Switch to arc4random() completely.
2003-02-11 02:17:11 +00:00
gad
b9c46dc8f9
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.
2003-01-28 01:21:57 +00:00
fjoe
b24e1d7b2a
Do not expose password if it is empty and PWF_STANDARD format is requested
...
MFC after: 1 week
2003-01-23 19:51:48 +00:00
ru
041d1287e8
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
charnier
d2168fe021
The .Nm utility
2002-07-14 14:47:15 +00:00
alfred
db007fe41c
de-__P()
2002-07-11 19:07:35 +00:00
dd
51373f0ac8
Lists follow a colon, not a semicolon.
2002-06-30 04:51:04 +00:00
sada
e5bf02e8eb
`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
dwmalone
46a7644f58
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
dd
63c3074b59
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
dd
c48c9a8ae4
Document the -7 option for usershow.
...
PR: 36735
Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>
2002-04-05 08:31:17 +00:00
keramida
9148cdcb62
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
nectar
deebe243c0
Use correct mode for temporary file.
...
Reported by: ryan beasley <ryanb@goddamnbastard.org>
2001-12-20 16:03:04 +00:00
ache
990d7c4236
Change rmskey() to rmopie() - we don't have skey anymore
2001-10-19 10:45:14 +00:00
dd
3c48707476
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
dd
b9e2a3df4b
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
7cdb2456bc
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
637fbcbedb
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
9e766e7f13
Handle snprintf() returning < 0 (not just -1)
...
MFC after: 2 weeks
2001-08-20 15:09:34 +00:00
brian
d48c427cd5
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 13:24:39 +00:00
obrien
9c97c8f02d
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
obrien
be022bb715
Remove GCC'isms in CFLAGS.
2001-07-20 04:23:13 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
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