When applying permissions to directories on Linux, the permission bits have different meanings than on regular files.
- The write bit allows the affected user to create, rename, or delete files within the directory, and modify the directory's attributes
- The read bit allows the affected user to list the files within the directory
- The execute bit allows the affected user to enter the directory, and access files and directories inside
- Here “access” is a bit ambiguous: +x on the directory grants access to files inodes through this specific directory (nothing less, nothing more, well… maybe chdir needs +x too). To read or write the contents of one file, the user also needs +r/+w on this file, but those are distinct permissions (they do not override anything)
I was not referring to execution bit on directories, which is indeed required. I mean that every file that is downloaded has also the execution bit set, and this is wrong: the execution bits of files should be the ones of the original files when they were uploaded while this is not the case.
If on computer A I upload a text file without the execution bit set, on computer B that text file is downloaded with the execution bit set. And this is wrong. On Linux this makes Copy quite unusable...