The problem is that I cannot control the file creation permissions. The origin is a IPcam. Here I only can set the ftp access data and the folder where the files are uploaded to. I use the user “pi” with it’s password on the Raspberry for the ftp settings. No chance to change the file permissions here.
Under these conditions I need a destination with owner “pi” or “root”. But now all new files uploaded have “pi” as owner, even when the folders owner is “www-data”.
For the file permissions I found a umask setting in the vsftp, so the uploaded files get the desired filepermissions.
Any hits for the owner problem?