Answer the question
In order to leave comments, you need to log in
How to set permissions on new files and folders in linux for nginx?
Good afternoon everyone.
There is a problem, I have a directory in which users upload files via ftp. All new files for nginx are not available
/home/dima/www/ I
use the commands:
groupadd developer
usermod -G developer diman_ftp
chown diman_ftp:developer /home/diman_ftp/www
Also set:
chown -R www-data:developer /home/diman_ftp/ www
But still, when adding data by the user, nginx writes 403
Answer the question
In order to leave comments, you need to log in
You need to configure ftp, for vsftpd add something like this to the config:
chmod_enable=YES
file_open_mode=0644
local_umask=022
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question