Wednesday, October 7, 2015

httpd cant write to folder/file because of selinux

httpd cant write to folder/file because of selinux

It replaces the existing context. But unless you're running the strict policy this doesn't matter since user processes run in unconfined_t, which can access all contexts given the appropriate *nix permissions. – Ignacio Vazquez-Abrams Oct 11 '12 at 22:42

Create another context that both vsftpd's and httpd's domain have write access to. It's a bit more work, but it's far less drastic than disabling SELinux for one or both daemons. – Ignacio Vazquez-Abrams Oct 12 '12 at 14:25

Reference:

http://unix.stackexchange.com/questions/50639/httpd-cant-write-to-folder-file-because-of-selinux#

No comments: