Node:set-passwd, Next:, Previous:set-priv-bits, Up:Protocol Requests



set-passwd [8] (1) Recommended


        set-passwd [8] (( person  : Pers-No;
                          old-pwd : HOLLERITH;
                          new-pwd : HOLLERITH )) -> ( );

This call is used to set the password of person to new-pwd. Any person may set it's own password. In addition persons with sufficient privileges may set other persons' passwords. The password of the person currently logged in must match old-pwd.

Example:

        1 8 5 6Hgazonk 7Ha9go8Hz
        =1

This example sets the password of the LysKOM administrator to "a9go8Hz" provided that the old password was "gazonk".

Error codes

login-first
This call cannot be executed without logging in.
undefined-person
person is not a valid person.
permission-denied
Attempt to change password of another person without being the supervisor of that person and without the wheel bit set and privilege level 7 or higher enabled.
invalid-password
old-pwd is invalid or new-pwd is invalid as a password.