RedFedora
12th November 2004, 01:20 PM
I have an odd problem that I'm hoping you can help me with.
I have a large directory tree filled with thousands of files and sub-directories.
What I would like to do is make all of the files in this tree read-writeable, but
non-executable. I would like to make the directories executable (enterable?)
as well as readable.
Normally, I would use chmod with the recursive flag for this, but since the directories
and files should have different permissions, I don't want to do it that way.
Can someone suggest a way to use chmod and ... I dunno, find?, to set different
permissions on directories and files in a tree?
I have a large directory tree filled with thousands of files and sub-directories.
What I would like to do is make all of the files in this tree read-writeable, but
non-executable. I would like to make the directories executable (enterable?)
as well as readable.
Normally, I would use chmod with the recursive flag for this, but since the directories
and files should have different permissions, I don't want to do it that way.
Can someone suggest a way to use chmod and ... I dunno, find?, to set different
permissions on directories and files in a tree?