Offline docs (switch to live docs)                         UI-only  CLI-only 

How to manage user accounts

How to add a user

To add a regular user, enter the following command:

maas $PROFILE users create username=$USERNAME \
    email=$EMAIL_ADDRESS password=$PASSWORD is_superuser=0

All the options are necessary. Note that stipulating a password on the CLI may be a security hazard, depending on your environment.

How to add an SSH key for a user

Assuming a public key exists in /home/ubuntu/.ssh/id_rsa.pub - add a key with the following command:

ubuntu@maas:~$ maas $PROFILE sshkeys create key="$(cat /home/ubuntu/.ssh/id_rsa.pub)"
Success.

[note] The user normally imports their initial SSH key on the first login to the web UI. [/note]

We recommend that you use the web UI to set or change a user's API key. To see how, select the "UI" choice in the drop-down above.

How users can change their password

We recommend that you use the web UI to change user passwords. To see how, select the "UI" choice in the drop-down above.