how to limit # of users reseller can create

Hello,

Yes. In your control panel » Server Managment » Manage Reseller Packages » Add Package, in this option, in the text field "Domains" put the number of domains that the plan should contain.

Julian.
 
He asked if there was a way to limit the number of users a reseller can create, not the number of domains a reseller or user can create. To the best of my knowledge, this is not possible. However, I'm willing to be told I'm wrong. :)
 
Yeah this is important for me because i have clients who need to SSL multiple domains they have.

Currrently only way I have found out going about this is to turn the user into a reseller mode and let him add users and add modify ip's as he chooses since SSL requires dedicated ip.

There should be an easier way to go about this.

Any ideas?
 
Right now as an immediate solution you could write a script that at least notifies you if they create more than a certain number of users. Check how many users are in the reseller's users.list file.
 
This is a very closely related script to what you're looking for.
http://help.directadmin.com/item.php?id=165

It counts the total number of domains on a server...
You'd want to tweak it a bit for the number of Users under a Reseller.
To do that, it would look more like this:
Code:
#!/bin/sh
MAX_USERS=200
if [ "$command" = "/CMD_ACCOUNT_USER" ] && [ "$action" = "create" ]; then
  CURRENT_COUNT=`grep -c -e '^' /usr/local/directadmin/data/$creator/users.list`
  if [ "$CURRENT_COUNT" -ge $MAX_USERS ]; then
    echo "Reseller is currently at it's limit of $MAX_USERS";
    exit 1;
  fi
fi
exit 0;
(note, I just wrote this, I didn't test it ;))

John
 
Back
Top