I have a user named 'user' which I use to login to the ftp of my website.
However, this presents me with a problem.
If I want to allow my user to access to ftp, I have to typ the following:
chown -R user:ftpusers /var/www/
By doing this, my website is no longer available when surfing to it. To make it available again, I have to typ the following command:
chown -R www-data:www-data /var/www/
the user 'user' is in both the ftpusers and www-data group. How can I fix this so I wouldn't have to typ this anymore?
I'm using apache2 and vsftpd on ubuntu