开发者

How to upload (FTP) images with a certain group?

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,

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜