In short, I have an authenticated HTTP-POST that:
- posts a jpg image (created as 666 apache:www) into
/directory2(created as 666 apache:www) in a 777
- moves image into
ftpuser:www with the exception of Apache-created files of course.
Currently, the image is uploaded as 666
apache:www, the folder is created, but the next step of copying the photo fails. Where am I going wrong? I've tried
setpacl on the apache user and
umask but I'm spinning my wheels now.
- Why is it that the apache user can't copy a file it created to a folder it created?
ftpuserare both part of the
wwwgroup. is this bad practice; what's the recommended practice?
Other notes: I'm using
vsftpd for FTP and using a umask of 002 in my