Disallow delete domain option for users

nitaish

Verified User
Joined
Jul 8, 2019
Messages
8
We want the end users should not be able to delete the domain that has been hosted on shared hosting server. At present, DirectAdmin allows end users to delete domains and add new domains from the panel. This creates issues to manage the shared hosting accounts for us. We want this option to be disabled. Can anyone guide how to disable the same?
 
I am not programmer else I would like to provide you script but I think you can do this by using "domain_destroy_pre.sh " script and prevent customer from removing domain.

Here is Solution.
 
While the script worked fine when trying to delete the domain from the user panel, it gives issues when we try to delete a user from the reseller panel. The script prevents the users from deleting the domains which works fine. However, when we delete a user from the reseller panel, it removes the domain and the user properly which is again not an issue. But it does not delete the dns zone. We have to manually delete the dns zone. Do you or anyone else have any idea on how to delete the dns zone too whenever a user is deleted by the reseller when we use this script to prevent end users from deleting the domains?
 
It should be in directadmin.conf, if you need it to be applied globally.
 
Back
Top