mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-29 00:44:39 +02:00
Updated Security protection of various files in win32 openssh (markdown)
parent
b2a0a76f5a
commit
21ed304be6
@ -7,7 +7,7 @@ Starting on build [v0.0.13.0][build13], win32 openssh make sure files are secure
|
||||
Utility scripts to adjust file permissions:
|
||||
1. Script to remove inheritance of the file, assign owner, and grant the owner full control
|
||||
```
|
||||
$user = "<user>"
|
||||
$user = "<myusername>"
|
||||
$objUser = New-Object System.Security.Principal.NTAccount($user)
|
||||
Set-SecureFileACL -filepath $env:systemdrive\Users\$user\.ssh\authorized_keys -owner $objUser
|
||||
function Set-SecureFileACL
|
||||
|
Loading…
x
Reference in New Issue
Block a user