Can't change admin user's password

4 posts / 0 new
Last post
#1 Mon, 01/21/2013 - 20:38
veroxii

Can't change admin user's password

Hi All,

I'm trying to do something I thought would be really simple - I have a domain created in virtualmin eg. foo.com, and the admin user is just called 'foo'.

I've lost the password for this user and simply want to change the user's password.

I've logged into virtualmin as root.

When I go into the menu option for edit users I can see the user. I click on the user name and it takes me to the details, email settings etc. Nothing about passwords. So I then go into "Login to Usermin". In Usermin there is an option to change the password, but you have to enter the old password too! Aaarrgh.

After extensive googling and searching I've logged into the server via shell and tried the following:

root@:~# virtualmin modify-user --domain foo.com --user foo --pass newpassword

But this gives an error: The user foo is the owner of server foo.com, and so cannot be modified

Like what?!??!? ;-)

This has been very frustrating. I've even just tried good old 'passwd foo' on the root prompt, but it doesn't seem to have changed anything (ie I can't get into the restricted directories on the server website).

Can anyone please help? I think I must be missing something VERY obvious.

Cheers V

Tue, 01/22/2013 - 02:14
tpnsolutions
tpnsolutions's picture

Hi,

You can change the password for the "main" user by going to:

Virtualmin > Edit Virtual Server

Under the Configurable settings check Set to... for the Administrative password then click Save.

Hope this helps.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Tue, 01/22/2013 - 07:48 (Reply to #2)
veroxii

Thanks a lot! That worked perfectly. I knew it had to be simple and obvious - I just couldn't find it before for the life of me.

Thanks again, V

Tue, 01/22/2013 - 18:42
tpnsolutions
tpnsolutions's picture

Hi,

No problem, some features aren't always published in the most obvious places, so I'm glad to have been able to help you out with this one :-)

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked