I have proftpd running for users to upload files to a webserver with many virtual hosts. Currently I've created ftpuser/ftpgroup as non-privileged user for proftpd, but this causes problems with php scripts that need to run as www-data once uploaded. I've added ftpuser to /etc/group for www-data, but this doesn't help. Is there any issue with telling proftpd to use the user/group www-data?
I tried to do this through UserOwner www-data GroupOwner www-data but that needs to be in a <Directory> container I think, anyway, it didn't work. I then changed the ftpgroup table in msql to: groupname: www-data gid: 33 members: www-data and my user login in the ftpuser table to: uid: 33 gid: 33 and I still get "permission denied" when attempting to upload, the folder is owned by www-data.www-data and I can login okay. There are no errors in the logs.
Code: drwxr-xr-x 22 www-data www-data 4096 2008-09-27 17:34 foldername inside that folder Code: drwxr-xr-x 9 www-data www-data 12288 2008-08-16 17:36 somefolder -rw-r--r-- 1 www-data www-data 6 2008-08-16 17:36 somefile.txt