We all are having good awareness of server security. Its on going process and we have to harden it as much as we can. For that, we install cloudlinux, Maldet/ClamAV antivirus, CSF, CpHulk. We configure software and hardware firewall on the cPanel server. We try to update the OS and other thrid party applications. There […]
See MoreCategory: Shell Programming
How to Terminate old suspended accounts on cpanel server
Terminate old suspended accounts on cPanel server Following scripts: 1) vi /root/terminatesuspended.sh for i in `find /var/cpanel/suspended/ -mtime +90 | cut -d’/’ -f5 | sed ‘1 d’` do y | /scripts/killacct $i –killdns n; done; 2) sh /root/terminatesuspended.sh & 3) Done
See MoreBackup script for reseller account
Following are the steps to take increment backup of reseller account on backup server. 1) First we need to find out the user name which is under the reseller account. On shared/source server :- vi /home/resellerUsername/backup.sh # For finding the username under the reseller account cat /etc/trueuserowners | grep resellerUsername | awk -F: ‘{print $1}’ […]
See More
You must be logged in to post a comment.