You’ve somehow convinced Virtualmin to make root
into a virtual server owner, rather than a super user. I don’t know how, as I thought we’d protected against every way that could be done (it used to be pretty easy to do accidentally, if you created a virtual server and put root
in the owner field, or if your browser auto-filled root
in the owner field of a virtual server when editing it, but that shouldn’t be easy now).
So, you need to grant the root user access to the ACL module, and then use the ACL module to grant access to all virtual servers in Virtualmin.
Edit /etc/webmin/webmin.acl
and change the root
line (which will be quite short now that it’s been configured to be a virtual server owner) into this:
root: acl adsl-client apache at backup-config bacula-backup bandwidth bind8 change-user cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin cluster-usermin cluster-webmin cpan cron custom dfsadmin dhcpd dovecot exim exports fail2ban fdisk fetchmail filemin filter firewall firewall6 firewalld fsdump heartbeat htaccess-htpasswd idmapd inetd init inittab ipfilter ipfw ipsec iscsi-client iscsi-server iscsi-target iscsi-tgtd krb5 ldap-client ldap-server ldap-useradmin logrotate logviewer lpadmin lvm mailboxes mailcap man mount mysql net nis openslp package-updates pam pap passwd phpini postfix postgresql ppp-client pptp-client pptp-server proc procmail proftpd qmailadmin quota raid samba sarg sendmail servers shell shorewall shorewall6 smart-status smf software spam squid sshd status stunnel syslog-ng syslog system-status tcpwrappers time tunnel updown useradmin usermin webalizer webmin webmincron webminlog xinetd xterm virtual-server virtualmin-awstats virtualmin-htpasswd ruby-gems php-pear jailkit
Then, restart Webmin (systemctl restart webmin
and reload the Webmin window), and browse to Webmin->Webmin Users->root->Available Modules and find Virtualmin Virtual Server in the list of modules, click on the name of the module, and then click “Reset to full access”, then save it.
That probably gets you back to normalish. Though File Manager probably also needs to be tweaked manually the ACL page, as it thinks you’re a regular user, now.
Making a Virtual Server owned by root
downgrades root
to a Virtual Server owner user and never makes sense. (But, people used to do it all the time. If you remember how you made root the owner of listings.sg
, I’d appreciate a description of how you did it, because we really want to make that kind of mistake impossible.)
And, to be clear: Uninstalling/reinstalling/etc. would not fix this problem (it won’t fix any problem, but it definitely won’t fix this one).