Submitted by sebastianmorsony on Sat, 09/17/2011 - 17:24 Pro Licensee
Hi
I have a virtualmin server, that has reached it maximum virtual servers, and would like to lock all reseller accounts, so that they cannot create new virtual servers. Is that possible? I would rather not have to do this manually to each of them.
Thanks Sebastian
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 09/17/2011 - 19:08 Comment #1
You could do this from the command line using the Virtualmin API, with commands like :
for reseller in \`virtualmin list-resellers --name-only\`; do
virtualmin modify-reseller --name $reseller --lock
done
Submitted by sebastianmorsony on Sun, 09/18/2011 - 15:06 Pro Licensee Comment #2
I forgot to write, that they should still be able to admin their sites, databases etc... Do a lock isn't a good idea. Can I set maximum virtual servers to the current used virtual servers with the modify-reseller script?
Submitted by andreychek on Sun, 09/18/2011 - 15:16 Comment #3
Howdy -- you can run "virtualmin modify-reseller" from the command line to see all the available options.
In your case, rather than this:
virtualmin modify-reseller --name $reseller --lock
You might want to use something like this:
virtualmin modify-reseller --name $reseller --max-doms N
And you can make "N" whatever domain limit you want all your resellers set to. You could just set them all to "1" if you want, which would prevent them from adding new domains if they already have any added.
Submitted by sebastianmorsony on Mon, 09/19/2011 - 08:21 Pro Licensee Comment #4
Thanks, that worked. :)
Submitted by sebastianmorsony on Mon, 09/19/2011 - 08:21 Pro Licensee Comment #5
Thanks, that worked. :)