[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] apache umask to get 775 file permissions
From:       Tom Evans <tevans.uk () googlemail ! com>
Date:       2014-07-29 14:47:57
Message-ID: CAFHbX1L0RS1mg_amNOOfygYi72mU+KM508HmxoCoSFJrbv-udg () mail ! gmail ! com
[Download RAW message or body]

On Mon, Jul 28, 2014 at 7:29 AM, Mike Wenzel <mwenzel@lfm.fh-swf.de> wrote:
> I got an cgi-script which is creating a file. This file need 775 permissions
> (rwxrwxr-x). I need to get the apache to create this file with 775
> permissions.
>
> I researched, but 90% of all those solutions doesn't work for me or those
> "init scripts" doesn't even exists on my openSUSE 13.1 64-Bit.
>
> I found out, that /usr/sbin/apache2 should be my "init script". I added
> umask 002 there, but it doesn't changed anything. I still have rw-r--r--
> instead of rwxrwxr-x perimssions.
>
> Can u please help me out?

At the start of the script, change the umask?

If it is a cgi binary and you cannot modify it, wrap it in a
cgi-script that you can modify.

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic