hello,
i want to chmod 444 all files in a directory, files in subdirs cannot be chmoded same goes for the subdirs themself.
So using:
chmod -R 444 /dir/
won't work because it will chmod the directorys and files (together with files in subdirectorys)
I figured out how to chmod files only, but it still will chmod files in subdirectorys.
find /dir/ -type f -print0 | xargs -0 chmod 444
How can I do it?