Bug #95213
closedfolderCreateMask: "bad" default value
0%
Description
In DefaultConfiguration.php, the default rights for new directories are being set to `2775`
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.
Updated by Urs Braem almost 3 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 {} \;
Updated by Urs Braem almost 3 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?