Re: apache umask to get 775 file permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 28, 2014 at 7:29 AM, Mike Wenzel <mwenzel@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux