I've got a few problems with permission/owner group setup on my VPS.
It's running LAMP (Ubuntu 12.10, apache2, mysql 5.5, PHP 5.5.8).
I've setup vsftpd as a forum platform I'm running needs ftp access to install it's own updates/modifications, etc.
I'm confused about owners and groups. The ftp user is "ftpuser" for example, and it's user ID: 1001. When I upload files via an FTP client logged in with that username, the ID of the owner of the file I just uploaded is set to 1001 1001 (owner/group). When the forum platform which uses the same details uploads a file, it's set to 33 33, which is the ID of the www-data owner and group (apache).
I've tried adding my "ftpuser" account to the www-data group, but it doesn't help. The issue is that the forum cannot make changes, it's saying the directories are not writable, but they're set to 777.
Any advice is much appreciated.
Thanks.