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

Re: chmod mistake

On 02/11/05, Masatran (Rajasekaran Deepak) <masatran@research.iiit.ac.in> wrote:

> 2. "find" in my home directory gives 1,300 files. Is there any utility that
> can be used to adjust their permissions quickly? (I will mostly be
> recursively setting permissions on directories.)

Something along the lines of:

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

might do what you want.

(Change all files and directories to be readable, writable and
executable by owner, then change all files so they are not executable.
You may wish to let other people read some files).

David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>

Reply to: