Node:set-priv-bits, Next:, Previous:get-person-stat-old, Up:Protocol Requests



set-priv-bits [7] (1) Recommended


        set-priv-bits [7] (( person     : Pers-No;
                             privileges : Priv-Bits )) -> ( );

This call sets the privileges of person to privileges. See Security. To successfully issue this call the session must be logged in as a person with sufficient privileges.

Example:

        1 7 6 0010000000000000
        =1

This example sets the privileges of person 6 to nothing but statistic. This particular set of privileges might be useful for a person used by a statistics-collecting dæmon.

Error codes

login-first
This call can't be executed without logging in first.
undefined-person
person is not a valid person.
permission-denied
The person currently logged in does not have the wheel bit set and privilege level set to 6 or higher.