File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,19 +172,21 @@ openclaw status
172172Remove explicit ACL entries for the constrained user:
173173
174174``` powershell
175+ $Workspace = "D:\OpenClawWorkspace"
175176$Principal = "$env:COMPUTERNAME\openclaw_bot"
176177
177- icacls "D:\OpenClawWorkspace" /remove "$Principal" /T /C
178- icacls "D:\OpenClawWorkspace" /remove:d "$Principal" /T /C
178+ icacls $Workspace /remove "$Principal" /T /C
179+ icacls $Workspace /remove:d "$Principal" /T /C
179180```
180181
181182Remove deny entries from sibling directories if you added them:
182183
183184``` powershell
185+ $Workspace = "D:\OpenClawWorkspace"
184186$Principal = "$env:COMPUTERNAME\openclaw_bot"
185- $Parent = "D:\"
187+ $Parent = Split-Path -Parent $Workspace
186188Get-ChildItem -LiteralPath $Parent -Directory |
187- Where-Object { $_.FullName -ne "D:\OpenClawWorkspace" } |
189+ Where-Object { $_.FullName -ne $Workspace } |
188190 ForEach-Object {
189191 icacls $_.FullName /remove:d "$Principal" /T /C
190192 }
You can’t perform that action at this time.
0 commit comments