LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Linux Permissions (https://www.linuxquestions.org/questions/linux-security-4/linux-permissions-4175522767/)

tux100 10-20-2014 11:10 AM

Linux Permissions
 
Say I have a file that is owned by root and group is apache and permissions are 775.

Is it possible for apache to fail to write to this file because the owner is root and not apache ?

Even though the group is apache with rwx ?

linosaurusroot 10-20-2014 12:05 PM

It will depend on the group the process is in that tries to open the file.

jstephens84 10-20-2014 12:08 PM

I really think that depends on the circumstances. So lets say that someone decides to change the group that apache runs as. If that new group doesn't have access then yes that will cause a write.

ilesterg 10-21-2014 07:48 AM

Quote:

Originally Posted by tux100 (Post 5256558)
Say I have a file that is owned by root and group is apache and permissions are 775.

Is it possible for apache to fail to write to this file because the owner is root and not apache ?

Even though the group is apache with rwx ?

Code:

id root
Code:

id apache


All times are GMT -5. The time now is 06:25 AM.