Ernie Hudson wrote:
Do get the basics of shell-scripting down. I'd recommend heading over to http://www.tldp.org and reading the Advanced BASH Scripting Guide. That's how I learned how to do it. Extremely handy skill and very necessary, just as important as writing .BAT or .REG files on Windows.
Now to your specific question. That's pretty easy to do. All you really have to do is change the top level directory permissions under /home, i. e. no recursion needed. I'd do it like this, in a basic FOR loop:
for dir in *
chmod 700 $dir
If you want to recurse down and change everything in everyone's homedir to permissions 700, just add the "-R" switch after "chmod".
Do you GNU?
Microsoft Free since 2003--the ultimate antivirus protection!