From 21ed304be6f8c839d6c53b8e9d4fd31d276d8157 Mon Sep 17 00:00:00 2001 From: Yanbing Date: Thu, 11 May 2017 18:35:46 -0700 Subject: [PATCH] Updated Security protection of various files in win32 openssh (markdown) --- Security-protection-of-various-files-in-win32-openssh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security-protection-of-various-files-in-win32-openssh.md b/Security-protection-of-various-files-in-win32-openssh.md index af41f09..cb92071 100644 --- a/Security-protection-of-various-files-in-win32-openssh.md +++ b/Security-protection-of-various-files-in-win32-openssh.md @@ -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 = "" $objUser = New-Object System.Security.Principal.NTAccount($user) Set-SecureFileACL -filepath $env:systemdrive\Users\$user\.ssh\authorized_keys -owner $objUser function Set-SecureFileACL