Password change and now I'm locked out

O.K. I tried the above and got: Can’t locate

You have to run changepass.pl from the Webmin dir. It uses relative paths. Run it from within /usr/libexec/webmin.

Hi Joe, I keep getting this error:

Can't locate ./acl/md5-lib.pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/libexec/webmin/changepass.pl line 6.

At this point I’m starting to believe Webmin is corrupted. Can I remove and re-install? without causing any issues?

Don’t do that. That’s almost certainly not what this is. This is what happens when you run changepass.pl from the wrong place.

Just verify the package.

rpm -V webmin

That should have very little or no output. If it spits out a bunch, then, yes, something has changed Webmin and then we can proceed from there, but don’t fuck up your system just because you can’t make the changepass.pl script run.

O.K. I ran this and nothing. It just went on to #

To run this command do this as root, it will work fine:

# cd /usr/libexec/webmin
# ./changepass.pl

That will print usage information if everything is working. Then you can run the command to reset your root password.

O.K. I got this
`This assumes that /etc/webmin is the Webmin configuration directory.
[root@ns10 webmin]# ./changepass.pl
usage: changepass.pl

This program allows you to change the password of a user in the Webmin
password file. For example, to change the password of the admin user
to foo, you would run:
changepass.pl /etc/webmin admin foo
This assumes that /etc/webmin is the Webmin configuration directory.
[root@ns10 webmin]#
`

I did this:

[root@ns10 webmin]# passwd Changing password for user root. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@ns10 webmin]#
But is still doesn’t login

Then I guess you’ve locked yourself out with bad passwords. You can wait a while, or you can manually remove that IP by editing /etc/miniserv.conf and removing the deny= line with your IP in it.

running it like this:

[root@ns10 webmin]# changepass.pl /etc/webmin admin pass
-bash: changepass.pl: command not found

/etc/miniserv.conf

-bash: /etc/miniserv.conf: No such file or directory

You’ll need to restart Webmin after editing miniserv.conf.

The means it’s not in your path (and it is not supposed to be, this is not a command anybody ever needs to run, usually). I told you how to run it (with ./changepass.pl).

Er, /etc/webmin/miniserv.conf.

/etc/webmin/miniserv.conf
-bash: /etc/webmin/miniserv.conf: Permission denied

You’re exhausting me, friend. I said edit the file.

Like with a text editor.

1 Like

I’m sorry Joe… I’m a novice in this… How do I edit a file that I can’t open?

You open it with a text editor. e.g. nano /etc/webmin/miniserv.conf

But, you probably want to make a backup copy of that file first, since you’re having a hard time with the command line…it’s possible to make Webmin refuse to start with some changes you could make in that file. But, just deleting deny= lines is safe.

I’m sorry but, deny= is not there…

port=xxxxx
addtype_cgi=internal/cgi
realm=Webmin Server
logfile=/var/webmin/miniserv.log
errorlog=/var/webmin/miniserv.error
pidfile=/var/webmin/miniserv.pid
logtime=168
ssl=1
no_ssl2=1
no_ssl3=1
no_tls1=1
no_tls1_1=1
ssl_honorcipherorder=1
no_sslcompression=1
env_WEBMIN_CONFIG=/etc/webmin
env_WEBMIN_VAR=/var/webmin
atboot=1
logout=/etc/webmin/logout-flag
listen=xxxxx