Grant "Create databases" permission to user through script

1 post / 0 new
#1 Wed, 06/17/2015 - 07:33
Daizu

Grant "Create databases" permission to user through script

Hello, everyone,

I've searched for a solution or workaroun to this problem but I haven't found any. I will briefly explain my problem.

I have a script calling the remote API of Virtualmin to execute 'clone-domains' with a --newuser and a --newpass. That creates a user that can access the cloned domain databases but he doesn't have permissions to CREATE databases. I know how to grant them from the webmin GUI but I need to do it automatically through a script. I guess there must be some option or command, but I couldn't find it in the documentation and any other topic about this matter solved it through webmin.

How could I achieve this? Any help or pointing me in the right direction would be greatly appreciated.

Thanks.