mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
List files for new permission check. (#9255)
This commit is contained in:
committed by
Neil Lathwood
parent
63aec0c4a7
commit
602d8f531c
@ -118,7 +118,9 @@ class User extends BaseValidation
|
||||
$folders_string = implode(' ', $folders);
|
||||
$incorrect = exec("find $folders_string -group $lnms_groupname ! -perm -g=w");
|
||||
if (!empty($incorrect)) {
|
||||
$validator->fail("Some folders have incorrect file permissions", $fix);
|
||||
$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