tflidd
January 5, 2017, 3:09pm
4
Also wenn euch die Daten irgendetwas wert sind, würde ich das nicht machen. Das ist wirklich eine schlechte Angewohnheit, selbst wenn man es nur kurz zum Testen macht, besteht die Gefahr, dass man es danach nicht entfernt oder es als temporäre Lösung lange weiterlebt.
Die Funktion in der Datei ist hier:
/**
* Check for correct file permissions of data directory
*
* @param string $dataDirectory
* @return array arrays with error messages and hints
*/
public static function checkDataDirectoryPermissions($dataDirectory) {
$l = \OC::$server->getL10N('lib');
$errors = [];
$permissionsModHint = $l->t('Please change the permissions to 0770 so that the directory'
. ' cannot be listed by other users.');
$perms = substr(decoct(@fileperms($dataDirectory)), -3);
if (substr($perms, -1) != '0') {
chmod($dataDirectory, 0770);
clearstatcache();
$perms = substr(decoct(@fileperms($dataDirectory)), -3);
if (substr($perms, 2, 1) != '0') {
$errors[] = [
'error' => $l->t('Your Data directory is readable by other users'),
'hint' => $permissionsModHint
This file has been truncated. show original