I've set up MAAS but forgot the username and password, how can I reset it?
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 : from maasserver.models import User In : User.objects.all() Out: [<User: maas-init-node>, <User: admin>] In :
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'