SHH
SSH
pwd :
ls :
ls -al :
ls alR :
ls *.html : .html
cd .. :
clear :
vdir : ls
exit :
PHP:
/scripts/suspendacct User
UserPHP:
/scripts/unsuspendacct user
:
:PHP:
chmod 755 /usr/bin/perl
PHP:
grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}'
:
elnoursPHP:
userdel -f elnours
777
:
:PHP:
find / -type d -perm 0777
PHP:
cat /var/log/secure | grep root | grep -i accepted
PHP:
clamscan -ir /home*/*/public_html/
:
:PHP:
crontab -e
5
PHP:
*/5 * * * * /etc/init.d/httpd restart >/dell/null 2>&1
DnsPHP:
*/60 * * * * /etc/init.d/httpd restart >/dell/null 2>&1
:
:PHP:
crontab -e
5
PHP:
*/5 * * * * /service named restart>/dell/null 2>&1
PHP:
*/60 * * * * /service named restart>/dell/null 2>&1
PHP:
mysqlcheck --repair db_name
PHP:
mysqlcheck --analyze db_name
db_namePHP:
mysqlcheck --optimize db_name
mysql
755PHP:
mysqlcheck -Aor
644PHP:
find /home/username/public_html/* -type d -exec chmod 755 {} \;
PHP:
find /home/username/public_html/* -type f -exec chmod 644 {} \;
tmpPHP:
ls -la /backup/cpbackup/daily
PHP:
rm -rf /var/log/exim_paniclog.[1-9].gz
rm -rf /var/log/exim_mainlog.[1-9].gz
rm -rf /var/log/exim_rejectlog.[1-9].gz
rm -rf /var/log/messages.[1-9]
rm -rf /var/log/maillog.[1-9]
rm -rf /var/log/secure.[1-9]
rm -rf /var/spool/exim/input/*
rm -rf /var/spool/exim/msglog/*
rm -rf /var/cache/eaccelerator/*
rm -rf /tmp/*
rm -rf /var/tmp/*
rm -rf tmp/
PHP:
service mysql stop
PHP:
service mysql restart
Disk /dev/vzfs (/)
PHP:
rm -rf /home/cprestore/*.tar.gz
:
PHP:
rm -rf /backup/cpbackup/daily/*.gz
:
:PHP:
rm -rf /backup/cpbackup/weekly/*.gz
backup .PHP:
rm -rf /backup/cpbackup/monthly/*.gz
PHP:
for i in `exim -bpr|awk {'print $3'}`;do /usr/sbin/exim -v -Mrm $i;done
Whm
PHP:
/scripts/updateuserdomains
PHP:
/scripts/eximup --force
/scripts/perlinstaller Digest::SHA1
/scripts/perlinstaller --force Mail::SpamAssassin
/scripts/fixspamassassinfailedupdate
/scripts/upcp
/scripts/installspam --force
/scripts/exim4 --force
/etc/rc.d/init.d/exim restart
/scripts/restartsrv spamd
/etc/rc.d/init.d/chkservd restart
tail -n 10/var/log/exim_mainlog
cat /var/log/exim_mainlog
yum install exim
/scripts/updatenow
/scripts/eximup --force
/scripts/buildeximconf
service exim restart
/scripts/perlinstaller --force
PHP:
/scripts/convert2maildir
3
1- ( )
2-
3- file manager
4- 777
5- public_html
6- ssh
7- cd /home
8- : wget www.elnours.com/bakup13.5.2007.tar.qz
9-
10- whm restore full backup cpmove
cpanel
PHP:
cd /root
PHP:
/scripts/restorepkg user
user
CPanel
PHP:
/scripts/upcp --force
PHP:
/scripts/ftpup --force
PHP:
/scripts/eximup --force
PHP:MySQL -PHP:
/scripts/mailperm
PHP:
/scripts/mysqlup --force
PHP:
/etc/rc.d/init.d/httpd restart
PHP:
/etc/init.d/cpanel restart
PHP:
/etc/init.d/chkservd restart
PHP:
/etc/init.d/crond restart
PHP:PHP:
reboot -n
PHP:
/etc/rc.d/init.d/sshd restart
PHP:
/scripts/fixquotas
CPanel
PHP:
/usr/local/cpanel/bin/checkperlmodules
/scripts/cleanmd5
/etc/init.d/cpanel restart
PHP:
/usr/bin/mysqlcheck -o --all-databases
PHP:
/usr/bin/mysqlcheck -r --all-databases
:
PHP:
/scripts/upcp
/scripts/updatenow
/scripts/sysup
/scripts/exim4 --force
/scripts/fixeverything
/scripts/exim4
/scripts/restartsrv httpd
/etc/rc.d/init.d/cpanel restart
/scripts/restartsrv mysql
/scripts/restartsrv named
/scripts/restartsrv exim
/scripts/restartsrv clamd
/scripts/restartsrv pop
/scripts/restartsrv spamd
/scripts/restartsrv melange
service lfd restart
/etc/init.d/lfd start
/scripts/ftpup --force
/scripts/chownpublichtmls
/scripts/mysqlup --force
/scripts/eximup --force
/scripts/upcp --force
service iptables restart