Issue #10299 has been updated by Josh Cooper.
We should be using [CheckTokenMembership](http://msdn.microsoft.com/en-us/library/windows/desktop/aa376389\(v=vs.85\).aspx) as this determines what group SIDs are present and enabled in the access token, and unlike the current approach is not fragile when it comes to builtin accounts that are granted implicit membership in groups. ---------------------------------------- Bug #10299: Puppet.features.root? doesn't return true when running under as SYSTEM on Windows https://projects.puppetlabs.com/issues/10299 Author: Josh Cooper Status: Accepted Priority: Normal Assignee: Josh Cooper Category: windows Target version: 2.7.x Affected Puppet version: 2.7.4 Keywords: Branch: On Windows, the SYSTEM (aka LocalSystem) account is not a member of the local Administrators group, so Puppet.features.root? returns false, when it should return true. This results in two issues, first puppet agent can't find it's Puppet::Util::RunMode#conf_dir, which points to the location of its configuration file. Second, the agent will raise an error when attempting to set owner, group, etc. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
