PASSMGMT(8) | Maintenance Commands and Procedures | PASSMGMT(8) |
passmgmt
—
password files management
/usr/lib/passmgmt |
-a options
name |
/usr/lib/passmgmt |
-m options
name |
/usr/lib/passmgmt |
-d name |
The passmgmt
command updates information
in the password files. This command works with both
/etc/passwd and
/etc/shadow.
passmgmt
-a
adds
an entry for user name to the password files. This
command does not create any directory for the new user and, unless the
-p
option is provided to specify the password hash,
the new login remains locked (with the string *LK* in the
password field) until the password is changed.
passmgmt
-m
modifies the entry for user name in the password
files. The name and password field in the
/etc/shadow entry and all the fields (except the
password field) in the /etc/passwd entry can be
modified by this command. Only fields entered on the command line will be
modified.
passmgmt
-d
deletes the entry for user name from the password
files. It will not remove any files that the user owns on the system; they
must be removed manually.
passmgmt
can be used only by the
super-user.
-c
comment-e
expire-f
inactiveChanging the password reactivates an account for the inactivity period.
-g
gid-h
homedir-K
key=value-K
options.-k
skel_dir-l
logname-m
option. The total size of each login entry is
limited to a maximum of 511 bytes in each of the password files.-o
-u
option.-p
hash-s
shell-u
uid-o
option, passmgmt
enforces the uniqueness of a UID.The passmgmt
command exits with one of the
following values:
passmgmt
command is displayed.-m
or -d
is specified), already exists (if
-a
is specified), or logname
already exists (if -m
-l
is specified).The command line interface of passmgmt
is
Evolving.
passwd(1), crypt(3c), auth_attr(5), passwd(5), prof_attr(5), shadow(5), user_attr(5), attributes(7), rolemod(8), useradd(8), userdel(8), usermod(8)
A NEWLINE or a colon (:) cannot be used as part of an argument. (: is interpreted as a field separator in the password file).
This command only modifies password definitions in the local
/etc/passwd and /etc/shadow
files. If a network nameservice is being used to supplement the local files
with additional entries, passmgmt
cannot change
information supplied by the network nameservice.
August 16, 2021 | OmniOS |