Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

Click on the Webmin tab, expand the Webmin section and select Webmin User. Then select the root user. Expand Security and Limit Options and select Only allow from listed addresses for IP Access Control. Enter the loopback address(127.0.0.1) into the field. The root user will still exist, but will be unable to login.

In Webmin -> Webmin Users click root and rename it to the username you use.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top