Webmin password root

4 posts / 0 new
Last post
#1 Tue, 10/25/2016 - 13:11
Deby

Webmin password root

Hi everyone, I need help. I'm a new user of unix SSH webmin and i made a mistake. 4 days ago now, i change the password in webmin interface but i made a mistake and i'm not able to find it. So i search and found the changepass.pl solution, but i don't know why, it doesn't work.

root@rescue-pro:~# root@rescue-pro:~# /mnt/vdb1/usr/share/webmin/changepass.pl /mnt/vdb1/etc/webmin root Mynewpassword -bash: root@rescue-pro:~#: command not found root@rescue-pro:~# Failed to open Webmin users file /etc/webmin/miniserv.users : No such file or directory

the config file is here: mnt/vdb1/etc and the changepass.pl is here: /mnt/vdb1/usr/share/webmin/changepass.pl

Does someone can help me for this action? I work on a debian 7.

MANY THANKS !!!

Wed, 10/26/2016 - 17:54
Deby

No one knows? :(

Fri, 10/28/2016 - 00:29
Joe
Joe's picture

Your Webmin installation is wonky. Why is it on those paths? (/mnt/vdb1/...) That's not a default Webmin installation location, and Webmin thinks it is installed in the usual place (with the users file in /etc/webmin).

If you've booted up a rescue disk, you'd need to chroot to the proper path so that tools like passwd and changepass.pl will work.

I would recommend you not use changepass.pl for this. If you're using the default Webmin setup of having it authenticate to the system password, you can just reset the system password. That's not a Webmin/Virtualmin issue, at all, and you'll find lots of examples how to do that on the web.

In short:

  1. Reboot in single user mode ( https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/3... ), by appending "single" to the grub boot line.
  2. Change the root password using the passwd command.
  3. Reboot. Test your changes.

If you have setup Webmin to authenticate to its own user database rather than the system passwords, then you'd need to use changepass.pl. The same idea applies. Either boot from rescue disk and mount the partitions and chroot into /, or boot in single user mode...then changepass.pl will work like it's supposed to. I recommend single user mode rather than a rescue disk for this task, though either works, if you know how.

--

Check out the forum guidelines!

Fri, 10/28/2016 - 02:04
Deby

Dear Joe, Thank you for these infomations. The person who installed Webmin is an autodidact, it seems that he did it bad. Do you if there's a "perfect tutorial" for installing a webmin? Deby

Topic locked