I have disabled anonymous access to the ftp server for exactly the security concerns you mentioned. The vsftp conf file does use a umask of 022 so the files are world readable.
Are there any security concerns that I have to be concerned about then for uploading the files using a user account that is different from the account that Apache uses and not chown'ing the uploaded files afterwards (or have it automatically set to the wwwrun user Apache uses by some means) when the file resides in the root folder of the web server?
I mean, I cannot see that there should be a problem with having these uploaded files in the root folder of the web server being owned by the user accounts that are different from the web server account, right?
Main Topics
Browse All Topics





by: arnoldPosted on 2009-08-07 at 10:47:50ID: 25045270
Are you uploading these files after you login or are you uploading the files as an anonymous user?
To provide the contents of the files through the web server, the files do not need to be owned by the user with whose credentials the web service runs. The files need to be group/world readable.
You can control what the permissions on the files will be when uploaded through the use of the mask
mask 0022 will be equivalent to chmod 755 on directories/execs and 644 on everything else.
Mask removes the defined bits from the access rights.
2 is write.
see if within your FTP server configuration you have a mask defined.
The other issue is a security concern i.e. one should not have an anonymous FTP configuration that uploads data for distribution by a web server.
This is in some cases virus/trojan/bots are distributed.