Re: How to set umask for apache2
Greg Wooledge <greg@wooledge.org> wrote:
> On Wed, May 28, 2025 at 15:34:39 +0100, Chris Green wrote:
> > ... and I have set UMask in the systemd apache2.service:-
> >
> > chris$ more /etc/systemd/system/apache2.service.d/override.conf
> > [service]
> > UMask=0002
>
> Shouldn't that square-bracket header be capitalized? [Service]
> instead of [service], from what I see in the man pages and other
> units.
Yes, I think that is/was the problem though I'm surprised that systemd
didn't complain.
As it turns out I don't actually need to run apache2 with umask set to
0002 as the web application where I wanted group write permission sets
its own file and directory permissions from the PHP code - and there's
a configuration setting to change it to what I need.
--
Chris Green
·
Reply to: