14 Jan
2009
14 Jan
'09
01:21
Hi list, I want to change permissions on a large directory structure to only RW for the owner of all the files. If I: chmod -R 600 /path/of/directory it won't work because it removes the 'x' bit from the directory, which prevents traversal. The only solution I've come up with is to: chmod -R 700 /path/to/directory and then: chmod 600 `find /path/to/directory -type f` Which seems like a round-about way to achieve this (and needs some hackery it you have messy file names, like ones with '-' in the path), what's the "correct" way? Cheers, h -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org