For some reason, I was getting permission denied on all my vhosts except for new sites I created. I was trying to assign a vhost to my server so I could access it via webmin.mysite.com as I've done dozens of times. (I keep reinstalling because I keep trying to get KVM working in Cloudmin but that's a separate issue).
I figured since I could create a new site and have access to it, why not delete and recreate the sites that are giving me the "Permission Denied you don't have permission to access / on this server." I thought it would help fix the permissions. It didn't. Now when I log in as root, I get a blank dashboard. No virtualmin, no cloudmin and no modules. (See attached image.
I have the server pretty dialed in and don't want to reinstall yet. Please help.
Comments
Submitted by JamieCameron on Sun, 03/17/2019 - 00:54 Comment #1
What does the
root:
line in/etc/webmin/webmin.acl
contain on your system?Submitted by chazbun on Sun, 03/17/2019 - 00:58 Pro Licensee Comment #2
root=/home/webmin
Submitted by JamieCameron on Sun, 03/17/2019 - 13:12 Comment #3
That's an unusual line ... can you post the whole
/etc/webmin/webmin.acl
file here?Submitted by chazbun on Sun, 03/17/2019 - 14:47 Pro Licensee Comment #4
Thanks for helping me out with this Jamie. The full contents of the webmin.acl file below:
rpc=0 gedit_mode=2 negative=1 uedit_mode=5 feedback=0 readonly= gedit=webmin desc_virtual-server=Virtual Email fileunix=webmin uedit=webmin root=/home/webmin
Submitted by JamieCameron on Sun, 03/17/2019 - 20:36 Comment #5
Hmm, it looks like a user named "webmin" got created, which should never happen!
As a quick fix, try replacing that file with just the line :
root: *
Submitted by chazbun on Mon, 03/18/2019 - 00:16 Pro Licensee Comment #6
That worked! Thank you!!!
I have all of my modules back. I haven't checked everything else yet.
Would this work if I removed the "webmin" user and added an asterisk to the root: line in the original webmin.acl?
Submitted by chazbun on Mon, 03/18/2019 - 00:28 Pro Licensee Comment #7
I'm in but Apache and MYSQL aren't working. I'm going to try removing the webmin user and adding the * to the root line in my original webmin.acl
Submitted by chazbun on Mon, 03/18/2019 - 02:15 Pro Licensee Comment #8
Ok. Removing the webmin user and adding the * to the root line in my original webmin.acl did not work.
Submitted by JamieCameron on Tue, 03/19/2019 - 23:41 Comment #9
What goes wrong with the MySQL and Apache modules exactly?
Submitted by chazbun on Thu, 03/21/2019 - 00:03 Pro Licensee Comment #10
Jamie, unfortunately I had to start over and reinstall. I have another server I can use to replicate the issue if needed.
I think I broke everything by creating a user named webmin. I'll make sure not to do that again.
Thanks, I appreciate you helping out with this.
Submitted by JamieCameron on Sat, 03/23/2019 - 13:00 Comment #11
Virtualmin should already prevent you from creating a user called "webmin", but it's possible that we missed some cases. We will add additional lower-level protection for this in the next release.