u-auto-chmod-uploads
The server automatically changes turns on the execute bit for files uploaded
by non-anonymous users that appear executable.
This shouldn't be a concern because it only affects the file mode, which
the user could change anyway with SITE CHMOD. The user cannot
execute the program uploaded from within FTP, but it can save the user
the hassle from logging in just to /bin/chmod the file.
A file that is eligible for auto-chmod if:
-
The file's file extension is recognized as a shell script, Perl
program, CGI script, etc.
-
The file header begins with the pound-bang notation (i.e. #!/bin/sh).
-
The file header is recognized as an ELF executable.
-
The file header is recognized as a Java applet or script.
The execute bits are still affected by the current umask, so if the umask
was 077, the auto-chmod feature would only be able to turn
on user-execute (chmod u+x).
Examples:
u-auto-chmod-uploads=yes
u-auto-chmod-uploads=no
Recommendation: