Using 'root' as Virtual Server custom username

6 posts / 0 new
Last post
#1 Mon, 06/06/2011 - 11:43
carloxp

Using 'root' as Virtual Server custom username

Hi all

how is possible use 'root' (or other existing user) as Virtual Server custom username? (see attached snapshot)

I mean that this can create /home/root directory or assign user 'root' as another domain's owner (example /home/mysite and /home/root both owned by user 'root').

Thank you!

Mon, 06/06/2011 - 12:07
Locutus

I don't think you can do this. Virtualmin will want to create the user that you choose for a new server.

Question: why would you want "root" as virtual server owner? Doing so would constitute a serious security issue, since PHP scripts of that server would run as root.

Mon, 06/06/2011 - 12:11 (Reply to #2)
carloxp

Hi

yes, you are right, PHP scripts of that server would run as root. This is a security risk, and it is better to avoid this.

So, I restrict the question: can I assign a new (or existing) Virtual Server to an existing user as owner?

Thank you!

Mon, 06/06/2011 - 12:17
Locutus

You can create a new virtual server with the same owner user as another existing Virtualmin server -- see this thread from a few minutes ago: http://www.virtualmin.com/node/18420 -- but not with a non-Virtualmin Linux user as owner.

(You'd have to delete that Linux user first.)

You can also change the owner of an existing server to that of another existing server, by using the Server Configuration -> Move Virtual Server command and making it a sub-server.

Mon, 06/06/2011 - 12:24 (Reply to #4)
carloxp

Okay Locutus, this is a good solution... I'll try.

Thank you for your help :-)

Mon, 06/06/2011 - 12:27
Locutus

You're welcome! Good luck with your user naming endeavors. :-)

Topic locked