From: "Ram Smith" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 11:32 AMG'day,
I'm looking for some pointers on how to do this scripting task.
I have a shared directory structure where alot of the files in each directory have permisions of 644 I wanting to change it so that the files are chmod 664 letting all users in the group read and write to the data. without nuking the permissions on the directories along with the files.
chmod -R won't work. There doesn't appear to be an option to exclude dirs with chmod.
how would you go about doing this.
How about:
# find . -type f -exec chmod 664 {} \;
?
That will only change permissions on all files (-type f).
Regards, Gonzalo
-- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
