Skip to Content

Category Archives: named

How to terminate all reseller’s accounts but leave DNS on server?

Written on March 22, 2012 at 10:00 PM, by

All right, first grab a list of all the accounts and put that list into a file called /root/acctlist: grep -v ‘root|#’ /etc/trueuserowners | grep resellerusername | cut -d: -f1 > /root/acctlist for i in `cat /root/acctlist` ;do /usr/local/cpanel/scripts/killacct $i –killdns=n –force ;done