LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Granting Apache write access (https://www.linuxquestions.org/questions/linux-newbie-8/granting-apache-write-access-4175423888/)

hansfordmc 08-24-2012 10:31 PM

Granting Apache write access
 
I'm on RedHat Linux and have php scripts which run under user:apache group:apache. Now, the php files are owned by another group. How do I grant apache write access to files owned by this other group. As it is now, the only way apache can write to these files is by chmod 0777 the file. 0775 does not work.

Thanks.

KinnowGrower 08-24-2012 10:47 PM

I am not sure but, you can try to make apache member of another group by the command
Code:

usermod -a -G othergroupname apache

Wim Sturkenboom 08-24-2012 11:13 PM

I use ACL for it; unfortunately no notes at hand how I did it.


All times are GMT -5. The time now is 10:45 AM.