DefaultPermissionsCheck

Service class to check the default folder permissions

Internal

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Table of Contents

Properties

$names  : array<string|int, mixed>
$recommended  : array<string|int, mixed>

Methods

getMaskStatus()  : FlashMessage
Checks a BE/*mask setting for it's security

Properties

$names

protected array<string|int, mixed> $names = ['fileCreateMask' => 'Default File permissions', 'folderCreateMask' => 'Default Directory permissions']

Verbose names of the settings

protected array<string|int, mixed> $recommended = ['fileCreateMask' => '0660', 'folderCreateMask' => '2770']

Recommended values for a secure production site

These are not the default settings (which are 0664/2775), because they might not work on every installation. For security reasons these are the recommended values nevertheless (no world-readable files). It's up to the admins to decide if these recommended secure values can be applied to their installation.

Methods

getMaskStatus()

Checks a BE/*mask setting for it's security

public getMaskStatus(string $which) : FlashMessage

If it permits world writing: Error If it permits world reading: Warning If it permits group writing: Notice If it permits group reading: Notice If it permits only user read/write: Ok

Parameters
$which : string

fileCreateMask or folderCreateMask

Return values
FlashMessage

        
On this page

Search results