Option to Disallow Domain Rename

cenourinha

Verified User
Joined
Jun 27, 2019
Messages
28
It would be great if you could implement an option to disallow Domain Rename by Customers.
 
You can just set "never_commands=CMD_CHANGE_DOMAIN" the in /usr/local/directadmin/conf/directadmin.conf for this, can be done automatically this way:
Code:
/usr/local/directadmin/directadmin set never_commands CMD_CHANGE_DOMAIN restart
 
For what i can understand, DirectAdmin doesn't use "Addon Domain" as an option. The "User" has an account with a initial default domain that can be renamed at any time or the user can select another domain as default.

It would be great if we have the option to disallow the user to change the initial domain (only the Admin or Reseller could change it), but the user could rename "secondary" domains.

What i want to archive is to be able to create an Hosting Account via WHMCS and disallow the user to change the "initial" domain, while being able to setup other domains (like "Addon Domains" on cPanel).

The actual setup would allow the customer to change the initial domain and it wouldn't be sync with WHMCS after that change.
 
You can just set "never_commands=CMD_CHANGE_DOMAIN" the in /usr/local/directadmin/conf/directadmin.conf for this, can be done automatically this way:
Code:
/usr/local/directadmin/directadmin set never_commands CMD_CHANGE_DOMAIN restart

Ok once I set this the Rename Domain button will go away in the user side? I still see it. Did I miss something?

I have run
Code:
/usr/local/directadmin/directadmin set never_commands CMD_CHANGE_DOMAIN

then did

Code:
systemctl restart directadmin


Refreshed the page Button still there..
 
The button will still be there, but the user won't be able to execute the command.

They'll still see a button to Rename Domain - and that'll be able to select an old domain name and enter a new domain name, but when they click Rename, they'll get an error that the command cannot be executed.
 
I think this need to be worked in order for us to be able to enable/disabled the "Rename Domain" feature for each account or by access level. Also it would be great if we could pass a var via API (example when creating an account via WHMCS) in order to disable that option for a specific domain (the first domain in the account).
 
I think this need to be worked in order for us to be able to enable/disabled the "Rename Domain" feature for each account or by access level. Also it would be great if we could pass a var via API (example when creating an account via WHMCS) in order to disable that option for a specific domain (the first domain in the account).

It can be controlled using https://www.directadmin.com/features.php?id=1171.
 
Back
Top