Skip to content

Commit

Permalink
fix: use sids when granting permissions with icacls (#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moore <122481442+moorec-aws@users.noreply.github.com>
  • Loading branch information
moorec-aws authored Jun 20, 2024
1 parent b5de504 commit 133b059
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/deadline/client/config/config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,11 @@ def _reset_directory_permissions_windows(directory: Path, username: str, permiss
*_get_grant_args(username, permissions),
# On Windows, both SYSTEM and the Administrators group normally
# have Full Access to files in the user's home directory.
*_get_grant_args("Administrators", permissions),
*_get_grant_args("SYSTEM", permissions),
# Use SIDs to represent the Administrators and SYSTEM to
# support multi-language operating systems
# Administrator(S-1-5-32-544), SYSTEM(S-1-5-18)
*_get_grant_args("*S-1-5-32-544", permissions),
*_get_grant_args("*S-1-5-18", permissions),
],
check=True,
capture_output=True,
Expand Down

0 comments on commit 133b059

Please sign in to comment.