httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Wenzel <mwen...@lfm.fh-swf.de>
Subject AW: [users@httpd] apache umask to get 775 file permissions [wd-vc]
Date Mon, 28 Jul 2014 08:33:10 GMT
It is a perl script. And yeah, I didn't thought about let the perl script change the permissions.
I'm now doing it this way.

Best regards
Mike Wenzel

Von: Bremser, Kurt (AMOS Austria GmbH) [mailto:Kurt.Bremser@allianz.at]
Gesendet: Montag, 28. Juli 2014 10:02
An: users@httpd.apache.org
Betreff: AW: [users@httpd] apache umask to get 775 file permissions [wd-vc]

If it is a simple shell script, add an appropriate chmod command after the file is created;
if several files are created, put the umask statement in there before file creation.
I would not recommend changing umask for the whole apache just to get it right for the output
of a single cgi script.

Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
________________________________
Von: Mike Wenzel [mwenzel@lfm.fh-swf.de]
Gesendet: Montag, 28. Juli 2014 08:29
An: 'users@httpd.apache.org'
Betreff: [users@httpd] apache umask to get 775 file permissions [wd-vc]

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?

AMOS Austria GmbH
1130 Wien, Hietzinger Kai 101-105
FN 365014k, Handelsgericht Wien
UID: ATU 66614737

http://www.allianz.at

********************************************************
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
enthalten Informationen, die vertraulich und
ausschliesslich fuer den (die) bezeichneten Adressaten
bestimmt sind.
Wenn Sie nicht der genannte Adressat sind, darf dieses
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
Personen zugaenglich gemacht noch in anderer Weise
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen.

Please note: This email and any files transmitted with it is
intended only for the named recipients and may contain
confidential and/or privileged information. If you are not the
intended recipient, please do not read, copy, use or disclose
the contents of this communication to others and notify the
sender immediately. Then please delete the email and any
copies of it. Thank you.
********************************************************

Mime
View raw message