mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-27 16:04:46 +02:00
Updated Security protection of various files in Win32 OpenSSH (markdown)
parent
c819bc1751
commit
e771a640b9
@ -63,7 +63,7 @@ function Set-SecureFileACL
|
|||||||
)
|
)
|
||||||
|
|
||||||
$myACL = Get-ACL -Path $FilePath
|
$myACL = Get-ACL -Path $FilePath
|
||||||
$myACL.SetAccessRuleProtection($True, $True)
|
$myACL.SetAccessRuleProtection($True, $FALSE)
|
||||||
Set-Acl -Path $FilePath -AclObject $myACL
|
Set-Acl -Path $FilePath -AclObject $myACL
|
||||||
|
|
||||||
$myACL = Get-ACL $FilePath
|
$myACL = Get-ACL $FilePath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user