Skip to content

Commit 5d14ca8

Browse files
authored
Merge pull request #70 from nurelin/main
Use the known SID for the `Users` group
2 parents 2abc59a + 5ebe448 commit 5d14ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oschmod/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def win_get_other_sid():
310310
For now this is the Users builtin account. In the future, probably should
311311
allow account to be passed in and find any non-owner, non-group account
312312
currently associated with the file. As a default, it could use Users."""
313-
return win32security.LookupAccountName(None, 'Users')[0]
313+
return win32security.ConvertStringSidToSid("S-1-5-32-545")
314314

315315

316316
def convert_win_to_stat(win_perm, user_type, object_type):

0 commit comments

Comments
 (0)