게시물 42건
   
보안설정 예시 스크립트 -2 [ yes no 결정 ]
글쓴이 : theko 날짜 : 2015-03-25 (수) 16:12 조회 : 4114

보안설정 예시 스크립트 -1 [ yes no 결정 ]  연속해서 작성하면 됨


echo "
HISTTIMEFORMAT=\"%F %T : \"
export HISTTIMEFORMAT
umask 022" >> /etc/profile


cat << EOF > /etc/issue
############################################################
#                                                          #
#All connetions are monitored and recored                  #
#Disconnect IMMEDIATELY if you are not an authorizes user! #
#                                                          #
############################################################
EOF

echo "Banner /etc/issue" >> /etc/ssh/sshd_config
service sshd restart

echo "banner_file=/etc/issue" >> /etc/vsftpd/vsftpd.conf

sed -i 's/anonymous_enable=YES/anonymous_enable=NO/g' /etc/vsftpd/vsftpd.conf
service vsftpd restart

chmod 600 /etc/cron.*
chmod 640 /etc/at.deny

chkconfig --level 2345 autofs off
chkconfig --level 2345 netfs off
chkconfig --level 2345 rpcbind off
chkconfig --level 2345 rpcgssd off

fi


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com