Ubuntu User WWW/FTP

Posted by SnIpY on Server Fault See other posts from Server Fault or by SnIpY
Published on 2012-01-03T12:42:36Z Indexed on 2014/05/27 3:31 UTC
Read the original article Hit count: 425

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about ubuntu

Related posts about ftp