Re: [CentOS] File access in Apache 2.4

2017-11-27 Thread Peter Eckel
Hi Gordon, > Or you could just run "systemctl edit httpd.service" like I suggested two > days ago. :) ... which is a nice way of doing it quickly, indeed. Thanks for the hint, I didn't know that command. However there is one disadvantage: All changes go into a file named 'override.conf', a

Re: [CentOS] File access in Apache 2.4

2017-11-23 Thread Gordon Messmer
On 11/23/2017 06:03 AM, Peter Eckel wrote: 1. Create a directory named ... Or you could just run "systemctl edit httpd.service" like I suggested two days ago.  :) ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinf

Re: [CentOS] File access in Apache 2.4

2017-11-23 Thread Peter Eckel
> official way is to copy the unit file to /etc/systemd/system and edit > this copy. that's one way to do it. It has the disadvantage of overriding *all* settings in the vendor-supplied unit files, which may be changed or extended in later releases. I prefer the other supported way (see

Re: [CentOS] File access in Apache 2.4

2017-11-23 Thread Ulf Volmer
On 23.11.2017 13:02, Alexander Farber wrote: > in the /usr/lib/systemd/system/httpd.service file change PrivateTmp=true to > PrivateTmp=false > and then "systemctl daemon-reload" and "systemctl restart httpd" Please don't modifications in /usr/lib/systemd/system/. System updates will overwrite yo

Re: [CentOS] File access in Apache 2.4

2017-11-23 Thread Alexander Farber
Hi David, On Tue, Nov 21, 2017 at 3:19 AM, david wrote: > I'm having file-access problems in Apache 2.4 under Centos 7. In > particular: > > - I have a file that's readable to every user and every application, > (writeable by only one user), but my CGI scripts cannot read it. > > - Some of my C

Re: [CentOS] File access in Apache 2.4 (clarification)

2017-11-21 Thread Jonathan Billings
On Tue, Nov 21, 2017 at 09:40:27AM -0800, david wrote: > Jonathan > Thanks for the advice. If you recommend NOT to use /tmp for cgi > temporaries, where would you put them and how to name them? And about > SELINUX, I'll consider that, but I'd like to get this working without > SELINUX first. > >

Re: [CentOS] File access in Apache 2.4 (clarification)

2017-11-21 Thread Valeri Galtsev
On Tue, November 21, 2017 12:02 pm, Gordon Messmer wrote: > On 11/21/2017 08:42 AM, david wrote: >> SELINUX is disabled. > ... >> Any suggestions? > > Yeah, https://stopdisablingselinux.com/ Ha-ha! I like it! Does anybody remember LIDS: https://en.wikipedia.org/wiki/Linux_Intrusion_Detection_Sy

Re: [CentOS] File access in Apache 2.4 (clarification)

2017-11-21 Thread Gordon Messmer
On 11/21/2017 08:42 AM, david wrote: SELINUX is disabled. ... Any suggestions? Yeah, https://stopdisablingselinux.com/ Also, you *could* run "systemctl edit httpd.service" and enter two lines: [Service] PrivateTmp=false ... if you specifically need to share /tmp.  The alternative is probab

Re: [CentOS] File access in Apache 2.4 (clarification)

2017-11-21 Thread david
At 09:24 AM 11/21/2017, Jonathan Billings wrote: On Nov 21, 2017, at 11:42, david wrote: > > Folks > > I'm having file-access problems in Apache 2.4 under Centos 7. In particular: > > - I have a file that's readable to every user and every application, (writeable by only one user), but my C

Re: [CentOS] File access in Apache 2.4 (clarification)

2017-11-21 Thread Jonathan Billings
On Nov 21, 2017, at 11:42, david wrote: > > Folks > > I'm having file-access problems in Apache 2.4 under Centos 7. In particular: > > - I have a file that's readable to every user and every application, > (writeable by only one user), but my CGI scripts cannot read it. > > - Some of my CGI

[CentOS] File access in Apache 2.4 (clarification)

2017-11-21 Thread david
Folks I'm having file-access problems in Apache 2.4 under Centos 7. In particular: - I have a file that's readable to every user and every application, (writeable by only one user), but my CGI scripts cannot read it. - Some of my CGI scripts need temporary storage for some files. They are,

Re: [CentOS] File access in Apache 2.4

2017-11-21 Thread Pete Biggs
On Mon, 2017-11-20 at 18:19 -0800, david wrote: > Folks > > I'm having file-access problems in Apache 2.4 under Centos 7. In particular: > > - I have a file that's readable to every user and every application, > (writeable by only one user), but my CGI scripts cannot read it. > > - Some of my

[CentOS] File access in Apache 2.4

2017-11-20 Thread david
Folks I'm having file-access problems in Apache 2.4 under Centos 7. In particular: - I have a file that's readable to every user and every application, (writeable by only one user), but my CGI scripts cannot read it. - Some of my CGI scripts need temporary storage for some files. They are,