These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Grant "Create databases" permission to user through script on the new forum.
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.