You are not logged in.

#1 2003-06-22 14:13:48

Moritz
Member
From: Cologne, NRW, Germany
Registered: 2002-10-12
Posts: 166

chmod question...

Hey guys!

Got a problem: I need to "chmod a-r *" all files in all subdirectories, but I don't want to change the attributes of the directories!
How can I do that... :?

Moritz

Offline

#2 2003-06-22 19:46:31

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: chmod question...

How about (this is untested) something like 'chmod a-r `find . -type f`'?


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#3 2003-06-22 22:30:57

Moritz
Member
From: Cologne, NRW, Germany
Registered: 2002-10-12
Posts: 166

Re: chmod question...

this worked for me:

find /home/ftp/ -type f -exec chmod a-x {} ;

Offline

Board footer

Powered by FluxBB