create-domain, run as non root

2 posts / 0 new
Last post
#1 Thu, 01/26/2017 - 12:43
dotperformance

create-domain, run as non root

Hi,

I want to create a script which can create a domain / virtual host in Virtualmin, using:

virtualmin create-domain --domain foo.com --pass smeg --desc "The server for foo" --unix --dir --webmin --web --dns --mail --limits-from-plan

(https://www.virtualmin.com/documentation/developer/cli/create_domain)

However, I want to run this script from a web page, i.e. running as apache (e.g. www-data) user.

I'm aware of the security risks and have methods in place to mitigate these, so my question is, can I change the virtualmin config to allow create-domain to be run from a non root user (or, just indeed add a specific user, such as www-data to be able to run the command).

Thanks in advance Rob

Thu, 02/02/2017 - 13:24
dotperformance

Hey

Just following up on this -- any thoughts? Even if it's a confirmed / guaranteed no there's no solution?

Cheers

Topic locked