Increase verbosity level for bad file permission (#489)
This commit is contained in:
parent
54824dd72e
commit
9a60244ef6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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$"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue