Fixing permission errors with vsftpd on Ubuntu
I’ve followed the steps to setup vsftpd on my Ubuntu 12.04 VPS and I can connect to the server with my specially-created FTP user. My issue is that I want that user to have access to /var/www/ (where I keep all my nginx sites). I can browse to that directory but can’t modify anything there – I see things like “550 Delete operation failed” when I try.
I think I could fix this by chown'ing the www directory for my FTP user, but is this a bad idea? I don’t know what permissions nginx expects on that folder – would this break things? Is there a better solution? I just want to be able to upload large files (MP3s etc) via FTP which can then be served on the web.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.