Monthly Archives: November 2016

SELinux directory permission

To check SELinux directory permission you need to -z for example 1ls -Z /var/www/html If something is incorrect you can re-adjust some of the directory permission: 1chcon -R -t httpd_sys_content_t /var/www/html

Posted in Linux, Operating System | Leave a comment

RedHat / Centos Firewall

To add an exception to firewall In RedHat/CentOS 6 12345iptables –line -vnL iptables -A INPUT -p tcp –dport 80 -m state –state NEW,ESTABLISHED -j ACCEPT iptables -A INPUT -p tcp -s 192.168.0.0/16 -j ACCEPT iptables -D INPUT -p tcp -s … Continue reading

Posted in Linux, Operating System | Leave a comment