-
-
Notifications
You must be signed in to change notification settings - Fork 3
mgmtpass.8
mgmtpass - Create, Modify Admin Passwords for IndiMail administration
mgmtpass -u user [-a passwd] [-p passwd] [-i]
mgmtpass is a passwd program for setting passwords in the table mgmtaccess. This table is used the the administration server indisrvr(8). For users other than the superuser, the old password will be prompted, and only after successful authentication, will the password be changed.
mgmtpass(8) uses crypt(3) routine to encrypt the password. You can set the environment variable PASSWORD_HASH to set the encryption method.
PASSWORD_HASH identifies the encryption method used and this then determines how the rest of the password string is interpreted. The following values of PASSWORD_HASH are supported:
PASSWORD_HASH | Method 0 | DES 1 | MD5 2 | SHA-256 3 | SHA-512
-u user
The user for which the password needs to be changed.
-a passwd
This option creates a user. The user has to supply the password for the
user 'admin' to access this.
-p passwd
The superuser can use this option to set/reset the password for an
existing user.
-i
Gives information like last accessed date, last update date, no of
unsuccessful attempts and whether the user is enabled/disabled. Only the
superuser can use this option.
If the user gets disabled, the only way to enable the user is to run the command
mgmtpass -u user -p pass
after which mgmtpass will prompt for the current password. Only if the current password is given successfully will you be able to enable the user.
The userid 'admin' has superuser privileges (like creating other users, resetting passwords, etc). The user 'admin' is created if it does not exist. The user will be prompted for setting password for 'admin' user.
0 for success and 1 for failure in which case all diagnostics are printed on stdout.
adminclient(8), indisrvr(8), vpriv(8), IndiMail(7)