Proper procedure - sftp access to www folder - To be able to upload files

Posted by Jay on Super User See other posts from Super User or by Jay
Published on 2013-11-02T03:21:27Z Indexed on 2013/11/02 3:58 UTC
Read the original article Hit count: 466

Filed under:
|
|
|
|

My www folder is root:root. What should it be? My site works perfectly but maybe I am doing something wrong.

My nginx.conf says user is 'nginx'. Should I be changing the www onwership and group to that or something else?

Mainly I want to be able to sftp into the www folder using FileZilla. Preferably only allow access to the www folder. I want to be able to upload the website files but I just don't know the proper procedure.

I have tried changing owners and groups but I get worried some part of the stack will not like it. For example does nginx play along, and php?

I thought about having a sftp group or even an sftp user. But I don't want to go down a path that should be avoided.

What should I be doing with my setup?

© Super User or respective owner

Related posts about linux

Related posts about permissions