Skip to content

Commit

Permalink
[service] Fix windows system SID
Browse files Browse the repository at this point in the history
  • Loading branch information
vlabo committed Dec 6, 2024
1 parent 9d874da commit 475d69f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/utils/permissions_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ var (
)

func init() {
// Initialize Security ID for all need groups.
// Reference: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers
var err error
systemSID, err = windows.StringToSid("S-1-5") // NT Authority / SYSTEM
systemSID, err = windows.StringToSid("S-1-5-18") // SYSTEM (Local System)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 475d69f

Please sign in to comment.