Hello im having a problem with a project of mine, i have ubuntu server 12.04.1 lts, the problem i'm having is that i everytime i upload a file through ftp i need to modify file permissions otherwise it isnt available through browser.How can i modify the /var/www folder permissions to be seen by public through web browser and every new file/directory have the permissions of the www directory?
|
You need to change your FTP account to be a member of the www-data group. (You could also set it to USE the www-data account.) Details of how to do this change dramatically depending on what FTP daemon you're using. |
|||
|
I would go with Jim Salter answer in general. It should be fast to configure. Just as a reference I had to build a server with plenty of users accessing via different processes and several daemons that I do not want to run as root. I decided to use acls. The steps are the following:
Edit
This will make every file created in that directory to inherit this permissions (in practice, adding www-data as the group instead of that users group. It should work for you too if you can't find the way in your FTP (which, again, should be easier) References: http://brainstorm.ubuntu.com/idea/24052 http://brunogirin.blogspot.com.es/2010/03/shared-folders-in-ubuntu-with-setgid.html |
||||
|
|