Welcome! Log In Create A New Profile

Advanced

Re: write permission for www-data

July 27, 2011 09:46AM
On 7/27/11 9:31 AM, Adam Tucker wrote:
> If the subdirectories were created before you chowned /home you'll need to run it recursively. For example:
>
> cd /home && chown -R www-data .


This is fine if you want all of the files in /home to be writable. If
there are files that should not be writable, you can change ownership of
*all* of the directories only with:

# cd /home
# find . -type d -exec chown www-data {} \;


or

change write privileges with chmod:


# cd /home
# find . -type d -exec chmod 777 {} \;


Doing either of these can be a security risk. You should consider only
giving privileges to write to files and directories that should be
writable by the web server (like an "uploads" or "images" directory). To
do this you have to manually change them one by one.

>
>
> On Wednesday, July 27, 2011 at 9:27 AM, etrader wrote:
>
>> I stored my hosts in /home. To have full functionality of my scripts I
>> gave a write permission to www-data (my nginx user) through SSH with
>> chown command. Although www-data has full permission to /home but I have
>> problem for writing in sub-folders. For example I need to give
>> individually a write permission for .home/domain/images.
>>
>> How I can give write permission to www-data fully?
>>
>> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213004,213004#msg-213004
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org (mailto:nginx@nginx.org)
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


--
Jim Ohlstein

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

write permission for www-data

etrader July 27, 2011 09:27AM

Re: write permission for www-data

douglas July 27, 2011 09:32AM

Re: write permission for www-data

Adam Tucker July 27, 2011 09:32AM

Re: write permission for www-data

Jim Ohlstein July 27, 2011 09:46AM

Re: write permission for www-data

etrader July 27, 2011 09:50AM

Re: write permission for www-data

António P. P. Almeida July 27, 2011 10:16AM

Re: write permission for www-data

Jim Ohlstein July 27, 2011 10:24AM

Re: write permission for www-data

Jim Ohlstein July 27, 2011 10:20AM

Re: write permission for www-data

etrader July 29, 2011 03:29PM

Re: write permission for www-data

António P. P. Almeida July 29, 2011 03:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready