Limit number of user accounts

floyd

Verified User
Joined
Mar 29, 2005
Messages
6,334
Limit number of user accounts in reseller packages.

I thought it would be a good idea to be able to limit how many user accounts a reseller can create.
 
Hello,

Usually, people have at least 1 domain, hence the domain limit usually limits the Users inherently. The exception is if Users are idling with 0 domains, is that happening in your case?

Note if you don't want Users to have 0 domains, you can use domain_destroy_pre.sh, eg:
Code:
#!/bin/sh
NUM=`grep -c . /usr/local/directadmin/data/users/$username/domains.list`
if [ "$NUM" -eq 1 ]; then
  echo "You've got 1 domain.  You cannot have 0.";
  exit 1;
fi
exit 0;
John
 
Sometimes I have trouble explaining things in a logical manner so bear with me.

The purpose of a reseller is to resell hosting. So I would want to be able to limit how many customers he can resell to. So maybe for a certain package the reseller could have 10 clients, another could have 20, and another could have 30 all at different price points.

In this scenario the number of domains is not relevant. A 10 client package might have anywhere from 10 to 100 domains.

It was just a thought as I was today looking closely at our packages we have and thinking about marketing strategeries.
 
I thought it was already an option, but I guess it isn't. Lots of hosting company's limit their amount of users under resellers.

So yes I too think it would be a nice addition. I think it wouldn't be that hard either to make?
 
All they need to add is a new option for Reseller Packages, Number of Users. I'm sure existing packages can be updated with a simple perl regex.
 
Back
Top