Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-10-2014, 01:00 PM   #1
Registered: Sep 2011
Posts: 44

Rep: Reputation: Disabled
User permissions for nginx

Good Day,

There is a linux user and group called "developers" (has no sudo access) with home folder in "/home/developers".

There is nginx running on the same server, there is a web folder for a site called "". that web folder is in "/usr/local/nginx/html/" Folder site rights are "nginx:developers" and chmod permissions are 770. Now here comes the problem.

Users "scp" their files into the server using "developers" user. Files get stored in "/home/developers" folder WITH "developers" owner (obviously). Users have to copy those files into "/usr/local/nginx/html/" folder. After "developers" user copies files lets say "" into "/usr/local/nginx/html/" owner of the file stays as "developers:developers". Therefore, nginx can not read the file.

How can I make that work? How can I allow user "developers" to transfer files into "/usr/local/nginx/html/" with nginx:nginx permissions? (without giving sudo access). Or what can I do on group level to make sure nginx will read those files?

Edit: nginx and php-fpm running as "nginx"

Thanks in advance.

Last edited by Fcukinyahoo; 11-10-2014 at 01:03 PM.
Old 11-11-2014, 10:28 AM   #2
Registered: Sep 2011
Posts: 44

Original Poster
Rep: Reputation: Disabled
never mind found the problem. My solution for permissions with group didn't work because i didn't know i had to restart nginx after changing permissions. Microsoft moment for a second...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebDAV on NGINX - how to set different permissions for users zgordan.vv Linux - Server 0 10-14-2014 08:44 AM
nginx location access permissions markotitel Linux - Server 2 02-18-2014 08:02 AM
setfacl changes group permissions; giving another user rw permissions secretlydead Linux - Server 4 09-23-2012 12:12 AM
Quick Nginx User and Group Question The Unincorporated Man Linux - Server 0 11-17-2011 08:24 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 10:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration