Bug #14763
closedCreate Files with no correkt umask when using with suphp
0%
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)
Updated by Anonymous about 19 years ago
typo3conf/localconf.php seems to be the better place for umask(0022);
Updated by Michael Stucki almost 19 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?
Updated by Sebastian Kurfuerst almost 19 years ago
Hi,
does it help to call t3lib_div::fixPermissions @Andri Steiner. J.A instead of umask?
Greets, Sebastian
Updated by Anonymous almost 19 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.
Updated by Christian Kuhn about 16 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).