Changes the password for a user. If the user name is not given, then the password is changed for the current user. If the user name is given, the password is changed for the given user.
Only administrators can change passwords for other users: The new password has to be specified in the command line as a readable text.
Syntax |
SETPASSWORD [-u userName] |
Arguments |
|
[-u userName] |
If specified, the password of the specified user will be changed provided the user currently logged in has the required rights. |
Description |
Takes the new password to be set as input from the user using a pop up where the password has to be entered. |
To change password of the current user to “xyz”, execute:
setp xyz
To change the password for user X to “xyz”, execute:
setp –U X xyz