Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable root login on Virtualmin

I’m using a vanilla Webmin / Virtualmin 3.93 GPL version on Centos 6. I’ve created a new user that has full privileges on Webmin, so now I want to disallow root from logging in, as obviously it could be a security issue.

Does anyone know how to do this? There must be an option for this somewhere but maybe I can’t see the wood for the trees.

I’ve disabled root SSH login manually, but I still can login to Webmin using the root account.

like image 405
totallyNotLizards Avatar asked Nov 24 '25 10:11

totallyNotLizards


1 Answers

Thanks to @Charles for the pointers.

To remove the root user from Webmin, log in as a user with administrator privileges and click on Webmin -> Webmin Users. In the list of users, either delete or remove all privileges from the root user.

After removing that user I could log in as my new administrator user and administer the server but not log in as root.

Problem solved, security through obscurity but still better than nothing.

like image 81
totallyNotLizards Avatar answered Nov 26 '25 21:11

totallyNotLizards



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!