Project

General

Profile

Actions

Bug #14763

closed

Create Files with no correkt umask when using with suphp

Added by Anonymous over 18 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-10-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

New generated GD Image has Permission 0600
Webserver runs as User nobody, so read Access is denied
PHP runs as Customer User, read Access grant
Placing umask(0022); on top of t3lib/class.t3lib_stdgraphic.php resolves the Problem, new file created with 0644.
I think there is a better solution than this. Perhaps, a $TYPO3_CONF_VARS["BE"]["umask"]?

(issue imported from #M1750)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #15249: EM sets permissions wrong when downloading an extension, causing problems with suphpClosedMichael Stucki2005-11-30

Actions
Actions #1

Updated by Anonymous over 18 years ago

typo3conf/localconf.php seems to be the better place for umask(0022);

Actions #2

Updated by Michael Stucki over 18 years ago

Instead of using umask() there is a function t3lib_div::fixPermissions() which should be called whenever a file has been created.

Can you please write exactly where the file is not changed?

Actions #3

Updated by Oliver Klee over 18 years ago

This is related to bug 0001958.

Actions #4

Updated by Sebastian Kurfuerst over 18 years ago

Hi,
does it help to call t3lib_div::fixPermissions @Andri Steiner. J.A instead of umask?

Greets, Sebastian

Actions #5

Updated by Anonymous over 18 years ago

t3lib_div::fixPermissions() should be called whenever a file has been created?
Which file includes the classes to generating Images (GD)? I doesnt find that place.

Actions #6

Updated by Christian Kuhn over 15 years ago

There is an installer option $TYPO3_CONF_VARS['BE']['fileCreateMask'] that should be used when a file is created. Please open a new issue if there still is an error (works for me).

Actions

Also available in: Atom PDF