Project

General

Profile

Actions

Bug #95213

closed

folderCreateMask: "bad" default value

Added by Urs Braem over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2021-09-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

In DefaultConfiguration.php, the default rights for new directories are being set to `2775`

See here: https://github.com/TYPO3/typo3/blob/master/typo3/sysext/core/Configuration/DefaultConfiguration.php#L72

The `2` sets the s flag in the dir's rights, which seems to be uncommon and has caused massive issues running on a Litespeed server (cPanel as well as Litespeed seem to be discouraging the use of the "s" flag for a while already). The issue was that when refindex ran on cli, the links to the files couldn't be updated, TYPO3 marked them as "missing" in the backend and added either outdated or no links to the files in the frontend.

Also, why 775 and not as common, 755?

I would propose to change the folderCreateMask default as such:

Old: 'folderCreateMask' => '2775',

New: 'folderCreateMask' => '0755',

I know this maybe a big thing, maybe breaking on other systems etc. Maybe I lack the knowledge to see the reason for the 2775. But I find it strange.

Actions #1

Updated by Urs Braem over 2 years ago

PS if anyone lands here, removing the "s" flag recursively required 2 commands for me:

find . -type d -exec chmod ug-s {} \;
find . -type d -exec chmod 0755 {} \;

Actions #2

Updated by Urs Braem over 2 years ago

In the end, the reason for our issue wasn't that. Totally not that. (we had to pass a ENV variable in our scheduler cronjobs due to multiple environments on the same hosting account, so something completely different)

Can you close?

Actions #3

Updated by Andreas Kienast about 2 years ago

  • Status changed from New to Closed

Closed as requested.

Actions

Also available in: Atom PDF