Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've set up MAAS but forgot the username and password, how can I reset it?

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

sudo maas changepassword <user>, where user is the user you want the password changed:

cerdea@capiau:/var/log/maas$ sudo maas changepassword maas-root
Changing password for user 'maas-root' 
Password: 
Password (again): 
Password changed successfully for user 'maas-root'
cerdea@capiau:/var/log/maas$

Of course, you may need to find which user to change the password for:

matsubara@tancho [~]$ sudo maas shell

In [1]: from maasserver.models import User

In [2]: User.objects.all()
Out[2]: [<User: maas-init-node>, <User: admin>]

In [3]: 
share|improve this answer
add comment

in case you're using Ubuntu 14.04Lts with Icehouse the command to use is

maas-region-admin changepassword <user> where user is the user you want the password changed:

$: sudo maas-region-admin changepassword user
Changing password for user 'user'
Password: 
Password (again): 
Password changed successfully for user 'user'
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.