How do you modify virtualmin controlled users?

OS: FreeBSD 8.0-Release

I want to give a user permission to run a custom command and to create dbs. I can do this by modifying the user under webmin, but virtualmin keeps overwriting my changes. What is the correct way to make this change?

Thanks Sacha

Status: 
Closed (fixed)

Comments

The correct way is to select the domain from the left menu, then go to Administration Options -> Edit Owner Limits, open the "Other restrictions" section and enter custom in the "Extra Webmin modules" field.

If you want to limit which commands he can run, you can still safely do this at Webmin -> Webmin Users -> username -> Custom Commands.

Thanks, the custom command part is working. However I still cannot assign this user permissions to created databases. I have enabled the Can Manage Databases option under Edit Owner Limits, but the user still can't create dbs. Again I can make the change with the webmin user module, but virtualmin overwrites the changes.

Is there another setting I am missing?

What happens when you try to create a database... does the option not show up, or do you receive an error message?

One thing you may want to verify is that the Virtual Server is allowed to have additional databases... it's possible the domain is at it's limit.

You can verify that by looking in Administrative Options -> Edit Owner Limits, and check that "Maximum allowed databases" is set high enough.

The option to create a new db does not show. I have double checked and the db limit is set to unlimited.

Does the "Edit Databases" link appear on the left?

Yes, the edit databases link is there and works fine to edit their existing dbs, but the add new database link does not appear.

Looking at the code, the only reason why the link to add a DB would disappear is if the user has hit is DB limit (seen at Administration Options -> Edit Owner Limits), or if his reseller has hit his limit.

Well maybe this is a bug. I've attached two screenshots. The first shows the settings under Edit Owner Limits, and the second what the user sees when logged in.

What further info do you need to troubleshoot? I can send you the admin password if you would like to login and take a look.

Ok, I see it now .. the user isn't getting the proper Virtualmin UI (with the domain menu on the left) at all. He should change this at Webmin -> Change Language and Theme, by selecting "Virtualmin Framed Theme".

That was it.

Thank you very much for all your help.

Automatically closed -- issue fixed for 2 weeks with no activity.