Increase verbosity level for bad file permission (#489)

This commit is contained in:
vthiebaut10 2021-03-26 20:12:13 -04:00 committed by GitHub
parent 54824dd72e
commit 9a60244ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ check_secure_file_permission(const char *input_path, struct passwd * pw, int rea
debug3("ConvertSidToSidString failed with %d. ", GetLastError());
break;
}
debug3("Bad permissions. Try removing permissions for user: %S\\%S (%s) on file %S.",
logit("Bad permissions. Try removing permissions for user: %S\\%S (%s) on file %S.",
resolved_trustee_domain, resolved_trustee, bad_user, path_utf16);
break;
}

View File

@ -132,7 +132,7 @@ Describe "Tests for ssh config" -Tags "CI" {
#Run
cmd /c "ssh test_target echo 1234 2> $logPath"
$LASTEXITCODE | Should Not Be 0
Get-Content $logPath | Should Match "^Bad owner or permissions on [a-fA-F]:[/\\]{1,}Users[/\\]{1,}\w+[/\\]{1,}.ssh[/\\]{1,}config$"
$logPath | Should Contain "^Bad owner or permissions on [a-fA-F]:[/\\]{1,}Users[/\\]{1,}\w+[/\\]{1,}.ssh[/\\]{1,}config$"
}
}
}