#Check Firewall already disabled
getenforce
#If Firewall not show disabled, please modify the file.
vi /etc/sysconfig/selinux
SELINUX=disabled
cat
/etc/sysconfig/selinux
#Check iptables already off
chkconfig iptables -
-list
#If iptables not show off, please modify the file.
chkconfig iptables off
#Add the port 222
vi /etc/ssh/sshd_config
Port 222
#restart sshd
service sshd restart
#reboot server due to we change the firewall setting
reboot
#Check Firewall already disabled
getenforce
#Add user for DEV or QA
useradd John
passwd John
#Add user into sudoer for get root permission
vi /etc/sudoers
John ALL=(ALL) ALL
沒有留言:
張貼留言