Tag: SSH
chmod recursively on directories or files using find
by Mark on May.06, 2009, under sysadmin
Sometimes its the little things that annoy us so much on the Unix command line. One big question for me was… How to do you differentiate between directories and files when recursively chmod-ing?
The answer is simple. But of course there are different ways to do the same thing.
Using the find command
find -name '*' -type d -exec chmod 0755 {} \;
NOTE: the -name ‘*’ parameter is used to keep from modifying the present working directory or ‘.’ directory.
find . -type f -exec chmod 0644 {} \;
(continue reading…)
DenyHosts smart defense for your SSH server
by Mark on Mar.19, 2009, under sysadmin
DenyHosts smart SSH Server Protection
DenyHosts is a python script that is run on any Linux or BSD based system to help block SSH based attacks. It works to prevent both “dictionary based” and “brute force” attacks. Also provided is a system to synchronize block lists between other users of DenyHosts.
Continue reading for the complete guide…
