Have a look at the man pages for
chown and
chmod. They both support the -R switch to make changes recursive and chmod supports
X as well as
x so that only directories (or files that are already executable) are made executable.
If you need something more than that, you could do something like the following. The middle line will break files that should be executable, so be careful with it:
Code:
find /home/steve -type d -exec chmod 0750 {} \;
find /home/steve -type f -exec chmod 0640 {} \;
chown -R steve:steve /home/steve
Some people also set group permissions to 0 - it depends on your requirement.