Submitted by nabab on Wed, 01/02/2019 - 22:49 Pro Licensee
Great job with 18.04, it seems to work like a charm.
I tried for the first time - I mean I never did it before - to transfer a virtual server, using the dedicated page from Server Configuration.
There is no choice for the user name: it has be root. On Ubuntu most don't use root, and you have that ability to specify the username in most of the forms for contacting a remote server. Why not there?
Many thanks!
Status:
Closed (fixed)
Comments
Submitted by nabab on Wed, 01/02/2019 - 22:50 Pro Licensee Comment #1
Submitted by JamieCameron on Sat, 01/05/2019 - 01:41 Comment #2
Unfortunately doing a transfer by logging in as another user and then sudo'ing to
root
isn't supported currently. Mainly because sudo can't be used when copying files viascp
Submitted by nabab on Sat, 01/05/2019 - 05:36 Pro Licensee Comment #3
Ok, understood, thanks a lot. Maybe it would be doable if you were doing it the other way around: transferring the domain from the server receiving with the domain's credentials. Just an idea :)
Submitted by andreychek on Sat, 01/05/2019 - 10:42 Comment #4
Thanks for the suggestion, we'll review what changes we can make there for the future.
In the meantime, you can still do a migration using the command line, just not via the GUI.
To do a command line migration, you can use the instructions here:
https://www.virtualmin.com/documentation/system/migrate
Although the above instructions mention using root, it'd be no problem to use an alternative user. Just SCP the backups to your preferred user, then use "sudo" whenever you run the "virtualmin" command on the command line.
Submitted by JamieCameron on Sat, 01/05/2019 - 12:51 Comment #5
One thing we could do is allow the transfer using the Virtualmin credentials. Do you login to Virtualmin as
root
on the remote system?Submitted by nabab on Sat, 01/05/2019 - 12:55 Pro Licensee Comment #6
No, I don't have root login anywhere
Submitted by JamieCameron on Sat, 01/05/2019 - 12:57 Comment #7
I have some ideas as to how this can be supported .. will update this ticket when there is progress.
Submitted by nabab on Sat, 01/05/2019 - 14:11 Pro Licensee Comment #8
Thanks a lot, much appreciated!
Submitted by hescominsoon on Sat, 01/05/2019 - 17:29 Pro Licensee Comment #9
ubuntu does not give you root by default. sudo is the way things get done. centos 7 also uses sudo but does not hard enforce it the way ubuntu does..i would expect that to change in the upcoming rhel 8 which just came out in closed beta.
If you want root in ubuntu have have to manually set the root password and then manually enable the root user..something most folks will not do as that is not the default way of doing things. The days of being able to go right to root are becoming numbered.
Submitted by JamieCameron on Sat, 02/02/2019 - 21:17 Comment #10
Ok, the next Virtualmin release will allow backing up to remote systems running webmin or virtualmin, even when direct root logins are disabled - as long as you can login as a sudo-capable user.
Submitted by IssueBot on Thu, 02/28/2019 - 09:07 Comment #11
Automatically closed - issue fixed for 2 weeks with no activity.