BASH script for applying permissions recursively

Dennis Kaarsemaker dennis at kaarsemaker.net
Thu Jun 29 08:40:21 BST 2006


On do, 2006-06-29 at 00:22 -0700, Dane Mutters wrote:

> chmod -R will change the permissions of the files AND directories
> alike (i. e. changing them all to the same thing).  This script will
> change the files to something, and the directories to something else.

The only useful application I've ever seen of that would be the
executable bit, chmod has the +X permission, which will set the
executable bit only on directories and won't touch the executable bit of
files :) 

-- 
Dennis K.

Time is an illusion, lunchtime doubly so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060629/c8b18452/attachment.pgp


More information about the ubuntu-devel mailing list