I am running apache2 on my debian 12 system.

I am trying to set the umask for apache2 to 0002 but I'm failing
miserably.

I have set umask in both /etc/apache2/envvars:-

    chris$ tail -10 /etc/apache2/envvars
    ## Enable the debug mode for maintainer scripts.
    ## This will produce a verbose output on package installations of web
    server modules and web application
    ## installations which interact with Apache
    #export APACHE2_MAINTSCRIPT_DEBUG=1

    #
    #
    # Added so files will be writable by members of group www-data
    #
    umask 002

... and I have set UMask in the systemd apache2.service:-

    chris$ more /etc/systemd/system/apache2.service.d/override.conf
    [service]
    UMask=0002


But the apache2 services are still running with umask 0022.  How can I
get it to change?

(I have restarted apache2 and even rebooted the system, to ne effect)

systemctl show tells me that systemd knows the umask is 0022:-

    chris$ systemctl show apache2.service | grep -i umask
    UMask=0022

So why can't I set it!!??


-- 
Chris Green
·

Reply via email to