views:

18

answers:

1

I've configured a IP Camera that upload images in a Ubuntu Server.

In Ubuntu server is runnig Apache http server and vsftpd (Very Simpe FTP Daemon).

I have to catch the images from a wep application,

  • how I have to configure the permissions ? (without security problems)

I thought that I can set the group of uploaded images to www-data,

  • can this works in my case ?
  • how can I set configure the FTP server (vsftpd) to set the images uploaded to www-data ?

thank you, Alessandro

A: 

You could set change the group of the director(y|ies) it gets uploaded to to www-data and set the set-gid (chmod g+s) bit on the director(y|ies), this should force newly created files/directories to get the www-data group, instead of the primary group of the process that creates it.

Kjetil Jorgensen