I have thousands of files and directories on my samba server. I changed all permissions (chmod) to <rwx> for owner and <r> for the rest. However, I want directories to be accessible to the rest of the users, for which I need to do:
# chmod -R u=rwx,go=r * >> for files
# chmod -R u=rwx,go=rx * >> for directories
I could not find any way to chmod files and directories differently. One-by-one is not an option. Any ideas on how to do this?
If there is no way around, what is the harm of setting <x> for any file in a samba server for any user? will it execute if called from windoze?