Answer the question
In order to leave comments, you need to log in
What to set the rights to the folder?
Hello!
On the Ubuntu 18 + Nginx server, there is a folder with a site /var/www/site.ru
for which the owner is set like this: $ sudo chown -R www-data: /var/www/site.ru
And the FTP client “vsftpd” is also installed, with a user folder /home/customuser/ftp/data
for which the owner is set like this:
Accordingly, so that you can interact with site files via FTP (change, delete etc.), the sites folder is mounted to the FTP user folder. Like this:$ sudo chown $USER:$USER /home/customuser/ftp/data
$ sudo mount --bind /var/www /home/customuser/ftp/data
Answer the question
In order to leave comments, you need to log in
Most likely vsftpd and the webserver are running under different users.
You can add these different users to the same group
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question