Ken Teague wrote at 2010-01-06 18:05 -0600: > On Wed, Jan 6, 2010 at 2:40 PM, green <firstname.lastname@example.org> wrote: > > But he probably doesn't want all his files marked as executable. > > "chmod 700 $HOME" will change only the home directory permissions, > which excludes all files that are currently present. > > So I change my suggestion to > > u=rwX,g=,o= > > This is an answer more suited to meet the needs of Mr. Cohen, but X is > normally intended to be used with -R (recursive) so that all files > that currently contain an execute bit retain that bit, and those that > don't are not set to contain the execute bit. I'd simply use "chmod > 700 $HOME" and call it a day. Okay, I was assuming recursion because I have a ~/public_html and symlinks from it to other files scattered in my $HOME and so a "chmod 700 $HOME" would just break stuff. Otherwise, just changing $HOME permissions is an excellent solution.
Description: Digital signature