Jerry Geis
2017-Jan-20 13:29 UTC
[CentOS] CentOS 7 httpd cgi script file not able to write to /tmp
Hi all, I have a script running in httpd. The script runs fine. However I want to "echo" some debug information into a file. The file is never created. Is there some security thing that has to be enable/disabled to allow a script in httpd to write to a file? Thanks, Jerry
Leroy Tennison
2017-Jan-20 14:28 UTC
[CentOS] CentOS 7 httpd cgi script file not able to write to /tmp
Just a speculation but /tmp is usually world-writable which leads me to suspect SELinux (or AppArmor with other distros.) ----- Original Message ----- From: "Jerry Geis" <jerry.geis at gmail.com> To: "CentOS mailing list" <centos at centos.org> Sent: Friday, January 20, 2017 7:29:02 AM Subject: [CentOS] CentOS 7 httpd cgi script file not able to write to /tmp Hi all, I have a script running in httpd. The script runs fine. However I want to "echo" some debug information into a file. The file is never created. Is there some security thing that has to be enable/disabled to allow a script in httpd to write to a file? Thanks, Jerry _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos
Jerry Geis
2017-Jan-20 14:54 UTC
[CentOS] CentOS 7 httpd cgi script file not able to write to /tmp
Hi - Thanks for the reply. I actually have selinux disabled on this box. Jerry
Jerry Geis
2017-Jan-20 15:19 UTC
[CentOS] CentOS 7 httpd cgi script file not able to write to /tmp
Fun fact... If I echo my data to the same directory as the script is located in it works. But it does not allow writing to /tmp I'm good with that. Thanks, Jerry On Fri, Jan 20, 2017 at 9:54 AM, Jerry Geis <jerry.geis at gmail.com> wrote:> Hi - Thanks for the reply. > > I actually have selinux disabled on this box. > > Jerry > >