(I have a Virtualmin 6.14 pro license) I read a post (https://www.virtualmin.com/node/53206) that talked about importing a Webmin-created site into Virtualmin, so that I could admin it the same as my other hosts (about five others) This seemed like a good idea, so I used the procedure, and all the host seem still to be working.
BUT... Webmin and Virtualmin no longer display information about any of the other hosts.
Webmin's Server -> Apache Webserver only shows information about the newly-imported site.
Virtualmin's dropdown (that formerly displayed the five other hosts), now only shows the newly-imported site.
The Dashboard for either (Webmin or Virtualmin) only shows Recent Logins and Virtual Server Information (for the newly-imported site).
How can I get back to the ability to administer all my hosts? Thanks.
Comments
Hi,
Thanks for contacting us.
That sound like an odd issue.
Go to Webmin > Webmin Users > username and check in Available Webmin Modules that Virtualmin Virtual Servers module is actually enabled.
What are your server specs and how much free resources do you have left (according to the Dashboard)?
Submitted by richb-hanover on Mon, 02/15/2021 - 15:25 Pro Licensee Comment #2
Thanks for the speedy response. I can't get to the Webmin Users (see video below), but it's 4GByte Ubuntu 18.04 server. My hosting company's admin GUI shows that about 1/3 of the RAM and Disk are in use, so I don't think the server's under stress.
Here's a video of the state of the Webmin GUI: removed link to video
Other thoughts?
Submitted by richb-hanover on Sun, 02/14/2021 - 10:38 Pro Licensee Comment #3
PS I am comfortable with SSH / command line, and can also look at raw data or make changes through vi/nano if necessary. Thanks again.
Submitted by JamieCameron on Sun, 02/14/2021 - 14:59 Comment #4
Also, make sure you're logged into Virtualmin as
root
and not as the domain owner.Submitted by richb-hanover on Sun, 02/14/2021 - 15:29 Pro Licensee Comment #5
Ahah! That's a clue! When I was importing the domain, Virtualman asked something about whether I wanted a new user or an existing user to be an owner. I chose my sudo account name. I suspect the the imported domain has "captured" the GUI.
What's the best workaround?
Thanks!
That's it. Your admin account should never "own" a virtual server in Virtualmin (and Virtualmin should never let you do that...that's a bug, Jamie fixed it ages ago for
root
, but I guess sudo accounts aren't protected from this). Your admin account already has access to every domain, it doesn't make sense to turn it into a domain owner account. You generally want a new account for imported or migrated domains (unless you want them owned by an existing virtual server account). But you never want them ownedroot
or whatever yourroot
-like user is.I don't know the best way to back out of this, maybe Jamie has a simple solution. Historically we'd tell you to hit the command line and re-enable all modules for this user in
/etc/webmin/webmin.acl
. Maybe there's a simpler way to do that.I think we should wait on Jamie to follow up with the simplest path (and hopefully word that Virtualmin will have this bug fixed).
Submitted by JamieCameron on Sun, 02/14/2021 - 22:32 Comment #7
Thanks for pointing this out Joe - I'll prevent this in the next Virtualmin release.
The work-around for this existing domain is to just rename the admin user. SSH into the system as
root
and runvirtualmin rename-domain --domain example.com --new-user somedifferentname
Submitted by richb-hanover on Mon, 02/15/2021 - 06:35 Pro Licensee Comment #8
That isn't quite what I wanted... The command did rename the admin user, but now my sudo account has been changed from 'richb' to 'tmiuser', (see
whoami
below.)I can still ssh into the host (as tmiuser), so I still have control of the server. But (obviously) I would like to get back to the previous state. Thoughts? Thanks.
Submitted by richb-hanover on Mon, 02/15/2021 - 07:11 Pro Licensee Comment #9
Update: I will await advice about putting this back to the previous state. Two new pieces of info (you will probably already have figured this out...)
1) My home directory is now owned by tmiuser:
2)
/etc/webmin/webmin.acl
continues to show theroot
user with access to all the modules - the problem is that therichb
user cannot log in right now because that account doesn't have a password or a sudo password...Submitted by JamieCameron on Mon, 02/15/2021 - 12:43 Comment #10
The simplest fix would be to create a new Unix user called "richb" , and make sure he's a member of the "wheel" group which allows use of sudo. This can be done at Webmin -> System -> Users and Groups.
Since the old user is still using the /home/richb home directory, you should select a different home dir for the new richb user though.
Submitted by richb-hanover on Mon, 02/15/2021 - 13:57 Pro Licensee Comment #11
Hi Jamie, Thanks again for these speedy responses. I think I will adapt your advice to create a new
deploy
user. (I have been meaning to do for a while, anyway, since it means my official "admin" tasks are separated from any files in my personal account.) That is, I will:I just did this, and I have full access to my Webmin/Virtualmin server. Thanks again!
Submitted by richb-hanover on Mon, 02/15/2021 - 13:04 Pro Licensee Comment #12
Submitted by JamieCameron on Mon, 02/15/2021 - 15:05 Comment #13
Cool, glad it's fixed!
Submitted by IssueBot on Mon, 03/01/2021 - 15:07 Comment #14
Automatically closed - issue fixed for 2 weeks with no activity.