예전에 올렸던거, 덧붙여서 올립니다.
조그마한 힘이 되길 바라면서....
#----------------------------------------------------------------------------------------
#!/bin/sh
# 제목 : 퍼미션 및 유저삭제
#
chmod 700 /usr/bin/finger
chmod 700 /usr/bin/ftp
chmod 700 /usr/bin/nslookup
chmod 700 /usr/bin/gcc
chmod 700 /usr/bin/suidperl
chmod 700 /usr/bin/whereis
chmod 700 /usr/bin/cc
chmod 700 /usr/bin/chage
chmod 700 /usr/bin/chfn
chmod 700 /usr/bin/sperl5.00503
chmod 700 /usr/bin/c++
chmod 700 /usr/bin/make
chmod 755 /usr/bin/man
chmod 700 /usr/bin/nslookup
chmod 700 /usr/bin/pstree
chmod 700 /usr/bin/rlog
chmod 700 /usr/bin/rlogin
chmod 700 /usr/bin/rz
chmod 700 /usr/bin/sz
chmod 700 /usr/bin/top
chmod 700 /usr/bin/talk
chmod 700 /usr/bin/which
chmod 700 /usr/bin/who
chmod 700 /usr/bin/write
chmod 700 /usr/bin/wall
chmod 700 /usr/bin/w
chmod 700 /usr/sbin/usernetctl
chmod 700 /sbin/netreport
chmod 750 /sbin/ifconfig
chmod 700 /bin/mount
chmod 700 /bin/umonut
chmod 750 /bin/mail
chmod 750 /bin/ps
chmod 750 /bin/df
chmod 750 /bin/dmesg
chmod 700 /etc/fstab
chmod 700 /etc/exports
chmod 700 /etc/hosts
chmod 700 /etc/hosts.deny
chmod 700 /etc/hosts.allow
chmod -R 700 /etc/sysconfig/
chmod -R 700 /var/log/
chgrp wheel /sbin/ifconfig
chgrp wheel /bin/ps
chgrp wheel /bin/netstat
chgrp wheel /bin/dmesg
chgrp wheel /bin/df
chgrp wheel /usr/bin/w
chgrp wheel /usr/bin/who
chgrp wheel /usr/bin/finger
chgrp wheel /usr/bin/last
chgrp wheel /usr/bin/top
chattr +i /etc/sendmail.cf
chattr +i /etc/mail/local-host-names
chattr +i /etc/aliases
chattr +i /etc/mail/access
chattr +i /etc/services
chmod 4750 /sbin/dump
#----------------------------------------------------------------------------------------
userdel adm & userdel lp & userdel sync & userdel shutdown
userdel halt & userdel news & userdel uucp & userdel operator
userdel games & userdel gopher & userdel ftp
#----------------------------------------------------------------------------------------
groupdel adm ; groupdel lp ; groupdel news ; groupdel uucp
groupdel games ; groupdel games ; groupdel dip
groupdel pppusers ; groupdel slipusers
#----------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------
# Apache 서버 주요 디렉토리에 대한 퍼미션 및 권한 재조정
# 설정사항 재조정 :
#----------------------------------------------------------------------------------------
#ApacheDir=/usr/local/apache;
ApacheDir=/www;
#----------------------------------------------------------------------------------------
chmod 755 ${ApacheDir}/bin; chown root.root ${ApacheDir}/bin;
chmod 755 ${ApacheDir}/conf; chown root.root ${ApacheDir}/conf;
chmod 755 ${ApacheDir}/logs; chown root.root ${ApacheDir}/logs;
chmod 751 ${ApacheDir}/cgi-bin; chown root.root ${ApacheDir}/cgi-bin;
chmod 511 ${ApacheDir}/bin/httpd; chown root.root ${ApacheDir}/bin/httpd;
chmod 640 ${ApacheDir}/bin/htpasswd; chown root.nobody ${ApacheDir}/bin/htpasswd;
chmod 640 ${ApacheDir}/conf/httpd.conf; chown root.nobody ${ApacheDir}/conf/httpd.conf;
#----------------------------------------------------------------------------------------
# 필요없는 패키지 하나하나씩 삭제중.^^
#----------------------------------------------------------------------------------------
rpm -e --nodeps anacron apmd at dhcpcd dosfstools eject hotplug ipchains ksymoops
"쇼핑몰·홈페이지·오픈마켓
블로그·페이스북·이메일 등의 각종 마케팅 글쓰기, 각종 광고, 영업, 판매, 제안서, 전단지 반응율 3배×10배 이상 높이는 마법의 8단계 공식" |
☞자세히보기 |
|
|