Just more ramblings of another IT Guy

Monthly Archives: January 2013

Commands to edit iptables

  To view the current rules and also view the rule ID use the following: iptables -L -n –line-numbers                      or iptables -nL -v –line-numbers   To delete a rule use: iptables -D INPUT X  (where x is the ID … Continue reading

Force complete website to HTTPS

` The below can be added to the httpd.conf file for best performance as the whole site is being redirected to https (can also be added to a .htaccess file). The result is that when a client connects to the … Continue reading

Copy file permissions from one file to another!!!

As the subject says the following can be used to copy the permission settings from one file to another   chmod –reference <reference-file> <target-file>   Example: chmod –reference <tobecopied.txt> <destination.txt>