如何重置我的 MAAS 用户名/密码?

如何重置我的 MAAS 用户名/密码?

我已经设置了玛雅斯但忘记了用户名和密码,如何重置?

答案1

sudo maas changepassword <user>,其中用户是您想要更改密码的用户:

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$

当然,你可能需要寻找为哪个用户更改密码:

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]: 

答案2

如果你使用的是 Ubuntu 14.04Lts 和 Icehouse,那么要使用的命令是

maas-region-admin changepassword <user>其中,用户是您想要更改密码的用户:

$: sudo maas-region-admin changepassword user
Changing password for user 'user'
Password: 
Password (again): 
Password changed successfully for user 'user'

相关内容