Skip to content

Instantly share code, notes, and snippets.

@pengmaradi
Last active December 9, 2016 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pengmaradi/9b9e606b13ca6b81ce81 to your computer and use it in GitHub Desktop.
Save pengmaradi/9b9e606b13ca6b81ce81 to your computer and use it in GitHub Desktop.
Do secure chmod.

change the folder or file permission

chgrp -R apache fileadmin typo3conf typo3temp uploads 
chmod -R g+rwX,o-w fileadmin typo3temp typo3conf uploads

su
chown -R root:apache typo3_src
chmod -R 755 typo3_src
chgrp -R www typo3_src
typo3_src/typo3: chmod -R g+w ext





# set all sysfolders 755
find . -type d -exec chmod 755 {} \;

# set all files 644
find . -type f -exec chmod 644 {} \;

chmod 640 ./typo3conf/LocalConfiguration.php;
chmod 640 ./typo3conf/PackageStates.php;

# remove files "index.php~"
find . -type f -name "*~" -exec rm {} \;
# remove all ._* files
find . -name "._*" -exec rm -f {} \;
@pengmaradi
Copy link
Author

[BE][fileCreateMask] = 0664
[BE][folderCreateMask] = 2775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment