From 55fe4f7ca3e9f40db123a430a5ea81d44456faad Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 17 Feb 2023 12:32:13 +0100 Subject: [PATCH] perm bugfix --- image/CopyTools.cmd | 4 ---- scripts/set-permissions.cmd | 16 +++++----------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/image/CopyTools.cmd b/image/CopyTools.cmd index 3f91d1b..bb5dda3 100644 --- a/image/CopyTools.cmd +++ b/image/CopyTools.cmd @@ -68,10 +68,6 @@ cd /D %SystemDrive%\ call set-permissions.cmd echo. -echo cd to %T% ... -cd /D %T% -echo. - echo ####### %0 ####### echo READY. echo. diff --git a/scripts/set-permissions.cmd b/scripts/set-permissions.cmd index 68b815d..975c58a 100644 --- a/scripts/set-permissions.cmd +++ b/scripts/set-permissions.cmd @@ -1,22 +1,16 @@ @echo off -set T=c:\TEMP set TOOLS=c:\tools echo ####### %0 ####### -takeown /F c:\*.txt /A -icacls c:\*.txt /inheritance:r -icacls c:\*.txt /grant Administrators:F -icacls c:\*.txt /grant Users:RX - -echo. -takeown /F %T% /R /A /D Y 1>nul -icacls %T% /inheritance:r -icacls %T% /grant Administrators:F /t /c /l 1>nul -icacls %T% /grant Users:RX /t /c /l 1>nul +takeown /F c:\*.txt /A 1>nul +icacls c:\*.txt /inheritance:r 1>nul +icacls c:\*.txt /grant Administrators:F 1>nul +icacls c:\*.txt /grant Users:RX 1>nul echo. +echo working on folder [ %TOOLS% ] ... takeown /F %TOOLS% /R /A /D Y 1>nul icacls %TOOLS% /inheritance:r icacls %TOOLS% /grant Administrators:F /t /c /l 1>nul