How to setup SFTP user permission with NGINX

Discussion in 'Site & Server Administration' started by jhashan, Feb 13, 2015.

  1. #1
    I have installed vsftpd on my centos 6.5 vps with NGINX, php-fpm. I created a sftp user using useradd, after uploaded files I see webserver (NGINX) cant access www directory and website showing forbidden error. So I changed my folder permission using

    chown -R nginx:nginx www

    now website working fine but sftp user cant access directory or files.
    How can I solve this problem?
     
    jhashan, Feb 13, 2015 IP