mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Drop group write validation (#11873)
causes more pain than it highlights issues New install docs mitigate the original issue
This commit is contained in:
@@ -118,25 +118,6 @@ class User extends BaseValidation
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// check folder permissions
|
||||
$folders = [
|
||||
'rrd' => $rrd_dir,
|
||||
'log' => $log_dir,
|
||||
'bootstrap' => "$dir/bootstrap/cache/",
|
||||
'storage' => "$dir/storage/",
|
||||
'cache' => "$dir/storage/framework/cache/",
|
||||
'sessions' => "$dir/storage/framework/sessions/",
|
||||
'views' => "$dir/storage/framework/views/",
|
||||
];
|
||||
|
||||
$folders_string = implode(' ', $folders);
|
||||
$incorrect = exec("find $folders_string -group $lnms_groupname ! -perm -g=w");
|
||||
if (!empty($incorrect)) {
|
||||
$validator->result(ValidationResult::fail(
|
||||
'Some folders have incorrect file permissions, this may cause issues.'
|
||||
)->setFix($fix)->setList('Files', explode(PHP_EOL, $incorrect)));
|
||||
}
|
||||
} else {
|
||||
$validator->warn("You don't have \$config['user'] set, this most likely needs to be set to librenms");
|
||||
}
|
||||
|
Reference in New Issue
Block a user