Age | Commit message (Collapse) | Author |
|
created users into their own primary group.
This does not change existing installations that already have a
usermgmt.conf(5).
ok todd@ beck@
|
|
-U to unlock an account
-Z to lock an account
Locking means adding a '*' prefix to the encrypted password and appending
a '-' to the user's shell... and obviously the opposite for unlocking.
some inputs from sthen@, otto@ and deraadt@
ok todd@
|
|
spotted by Jeremie Courreges-Anglas
|
|
usermod -S '' username
Original patch from jca at wxcvbn dot org.
Added a comment to the man page.
man tweaks and ok jmc@
ok miod@
|
|
the system otherwise we may end up removing all groups from a user.
ok miod@
|
|
from Michael W. Bombardieri
ok miod@
|
|
but user(8) behaviour has become OS specific in time so there's no
sense keeping this. We are OpenBSD and we use BSD EXTENSIONS
unconditionally.
ok miod@ millert@ deraadt@
|
|
inputs from and ok miod@
|
|
installer do) and do not append the user to its primary group name in
/etc/group.
ok miod@
|
|
ok krw
|
|
permits to remove a user from a group).
It uses the same syntax as `-G'.
In practice this works like `-G' on Linux; it was decided not to modify
our `-G' option because people rely on the existing behavior (which
works like `-aG' on Linux, i.e. append to group).
Reworked from scratch from a submission by Frank Brodbeck.
man page bits reviewed by jmc@
ok miod@
|
|
as suggested by Glen Anderson <g dot s dot anderson at gmail dot com>;
while here, add a few missing "[,group,...]",
do not lump punctuation into .Ar, and drop useless .Li from "..".
OK jmc@
|
|
as noted by schwarze@, the semantics of the .Bk macro is slightly
different now to conform with modern groff releases; using a
command-line option (.Op) macro, instead of its multiline version,
while preserving the .Bk/.Ek block makes our manual pages compatible
with mandoc, new groff and even groff-1.15.
ok jmc@, schwarze@
|
|
|
|
and usermod(8) but also with the notational conventions used in
other manual pages.
ok jmc@
|
|
- put -G in the right place
|
|
for chars.
|
|
|
|
|
|
nonsensical in that case (and usually zero).
- when altering the groups file, preserve a single "+" line instead of
complaining it is incorrect and removing it.
ok fgsch@ millert@ ray@
|
|
use strcspn to properly overwrite '\n' in fgets returned buffer
ok ray@ jaredy@
looks ok gilles@ long time ago on a similar diff
|
|
the synopsis and usage of user(8) related commands; sort the options
list in the DESCRIPTION section of the manual pages; spacing.
ok jmc@
|
|
with the right mdoc macros.
|
|
- remove non-functional -v option from docs/usage()
feedback/ok millert otto
|
|
struct tm to mktime() so that the calculation will follow the local
DST rules
ok millert@ otto@
|
|
end of the file, for this would make logins coming after the yp line (such
as nomadic or fallback accounts) to come back before the yp line and take
precedence. Found the hard way installing packages needing a user to be created.
ok deraadt@
|
|
fixes is from pr 5554. ok millert, ray
|
|
|
|
|
|
OK millert@.
|
|
routines.
OK millert@.
|
|
|
|
|
|
|
|
|
|
user id to userinfo works. From Alf Schlichting; ok millert@
|
|
code cannot overflow. Add error checking to protect future code
changes and to provide a better example for plagiarizers.
OK millert@.
|
|
password in argv. This doesn't solve the problem; it just reduces
the amount of time that encrypted password is available via ps.
OK deraadt@ and krw@
|
|
spotted by matthieu and miod
sorry bill, but you stopped just hacking far too long ago..
|
|
Reported and fix confirmed by Maxim Bourmistrov
|
|
|
|
example by example, we teach people how to actually use snprintf. because
it is clear (especially judging by code coming from netbsd hint hint perhaps
if i say it like this they will finally learn) that people are not paying
attention, and replacing one security problem with another.
in the early days we replaced buffer the typical ANSI-C standardized function
buffer overflows (by which I mean strcpy, strcat, and sprintf) with
non-overflowing ones -- range checking varients. We knew we were fixing
a major problem. The damn overflows. But we did not have time in all cases
to handle the next problem we were not handling: string truncation. Now we
need to (I hope not slowly) start fixing the string truncations.
Anyone going to help?
|
|
ok deraadt@ millert@
|
|
also, section order for usermgmt.conf.5 was wrong.
|
|
|
|
fields in passwd(5)). OK otto@ a while ago.
|
|
|
|
expiry flag. Resolves PR 3792, though not by changing code, but by
changing docs, comments and an error message or two.
ok jmc@ millert@
|
|
ok deraadt@ tdeval@
|
|
+ entry. assistance from tdeval and otto. this is the first half of
pr 3727, brendan@cs.uchicago.edu
|