[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chmod mistake



On Wed, 2 Nov 2005 12:49:39 +0100
David Dorward <dorward@gmail.com> wrote:

> Something along the lines of:
> 
> chmod -R 700 ~/
> find ~/ -type f -exec chmod 600 {} \;
> 
> might do what you want.

Would it be better to do this?

find ~/ -P -type d -exec chmod 700 {} \;
find ~/ -P -type f -exec chmod 600 {} \;

Just thinking that following symbolic links might not be such a good
thing.

Later, Seeker



Reply to: