09-16-06 06:43 PM
On 2006-09-14, Jim Showalter wrote:
> I copied a large directory containing thousands of files and with many
> sub-directories from a fat32 drive to a ReiserFS drive. All the files
> are now world executable.
>
> Is there a way, using "chmod -R", to do a blanket removal of the
> execute permission on normal files, while leaving the 'x' permission
> on sub-directories?
chmod -R -- a-x *
find * -type d -exec chmod +x {} \;
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
[ Post a follow-up to this message ]
|