Project

General

Profile

Actions

Task #52668

closed

Install Tool: Remove permission checking and fixing code from "folder structure"

Added by Ernesto Baschny over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
Start date:
2014-03-26
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

We've got several complaints and issues with the new "folder permission" checking and fixing - In the Install Tool "Step Installer" and later in the "Folder Structure" menu entry.

So we decided to simply remove this functionality from the install tool for now, and leave the responsability of a "secure" and "working" environment with the administrator / hosting provider. There are just too many constelations and exceptional conditions to consider here.

Default permissions (for new folders / files) should be:

Folders: 2775
Files: 0664

In the "Folder Structure" checking section a warning could be displayed if these are the active settings, pointing to a Wiki page describing different methods on how to "secure your installation". The wiki page could be collaborative effort documenting the best practice setup for different PHP vs Webservers vs OS variants.

Streamline what is considered an "Error", "Warning" and Notice":

Errors are:
  • Default permissions allowing world (other) writing (o+w)
  • Directories that do not exist
  • Directories that are not writeable (no files can be created within)
  • Paths that are files but should be directories
  • Paths that are not files but should be files
  • Symlinks that should be present but do not exist
Warnings are:
  • Default permissions allowing world (other) reading (o+r)
  • Symlink that is not a symlink (i.e. typo3_src)
  • Files that should be present but do not exist
Notices are:
  • Default permissions allowing group (other) r/w (g+rw)
  • Files that cannot be written (index.html, .htaccess)
  • Files which not match the configured default permission
  • Files that do not contain what we expect

Files

chmodTest.php (897 Bytes) chmodTest.php Michiel Roos, 2014-01-12 10:38
chmodTest.php (1.5 KB) chmodTest.php Michiel Roos, 2014-01-13 10:51

Subtasks 2 (0 open2 closed)

Bug #57152: First Install lists directory errors: confusingClosedErnesto Baschny

Actions
Task #57354: Default file permissions recommendation schould be 0665 instead of 0660Closed2014-03-26

Actions

Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #52578: Install process removes permissionClosedChristian Kuhn2013-10-07

Actions
Related to TYPO3 Core - Bug #53037: Install Tool: Folder structure is too strictClosed2013-10-22

Actions
Related to TYPO3 Core - Task #57055: Wrong unit tests after Installer permission fixClosedMarkus Klein2014-03-18

Actions
Related to TYPO3 Core - Bug #52016: wrong recommendations for typo3temp permissionClosed2013-09-15

Actions
Related to TYPO3 Core - Bug #58809: Default permissions for new files should be 0664Closed2014-05-14

Actions
Actions

Also available in: Atom PDF