Changing password failed

I've changed the password for one of my servers and it doesn't appear to have worked.

I can't get in with the new password. The old password still still works even though "Show password" displays the new one.

Thanks, Ryan

Status: 
Active

Comments

Does it help if you change the password to something else, then change it back again?

Thanks Jamie,

I tried that and it still has not change the password

If you check the /etc/shadow file entry for the user, it is being updated?

The password string is encrypted, but I compare it before and after updating the password and they were different. So I'm guessing that's a yes??

Yes, that does normally indicate a change .. but could also just indicate re-hashing.

How are you making the change exactly?

Using the Edit Virtual Server -> Configurable settings -> Administration password -> "Set to .." Radio button.

Then type the new password there

Wierd, I can't re-produce this .. on my test systems, the password change works fine.

If you validate the domain (at Limits and Validation -> Validate Virtual Server), does it report any errors?

Wierd, I can't re-produce this .. on my test systems, the password change works fine.

If you validate the domain (at Limits and Validation -> Validate Virtual Server), does it report any errors?

The only error that comes up is : AWstats reporting : AWstats program /home/domain.com/public_html/cgi-bin/awstats.pl does not exist

OK, that looks fine too ..

If you change the password from the command line using the Virtualmin API, with a command like :

virtualmin modify-domain --domain whatever.com --pass something

does the password get updated OK? Make sure you use a completely new password, as if you change it to whatever Virtualmin thinks the domain's password already is, nothing will happen.

Unfortunately that didn't work either. :(

So what I did was un-tick "Webmin login enabled?" from enabled features, saved. Then I ticked it again and the password now changed to the new one.

I verified that it all worked by changing the password again through the web interface and it all seems to be in sync now.

This has got me wondering if other v.servers have the same problem.

Ok, interesting .... one thing I forgot to ask before was how you were trying to login exactly? Via SSH, FTP or the web UI?

I only tried the web UI. I just tried SSH and it seems ok. This is probably isolated to the webmin account.

I wonder, was the password for the Webmin login perhaps changed previously at Webmin -> Webmin Users?

I'm not sure .. this is a very old site, it was orginially imported from cpanel in 2006 so it could have lost itself along the way.