Issue #8662 has been reported by Josh Cooper.

----------------------------------------
Bug #8662: Puppet.features.root? always returns true on Windows
https://projects.puppetlabs.com/issues/8662

Author: Josh Cooper
Status: Accepted
Priority: Normal
Assignee: 
Category: windows
Target version: Telly
Affected Puppet version: 
Keywords: 
Branch: 


On Windows, Puppet.features.root? always returns true, even when running as a 
non-admin user. It should only return true if we are running with elevated 
privileges.

Part of the problem is that Puppet.features.root, invokes SUIDManager.root?, 
which calls Process.uid, without first requiring the win32/process gem. And 
without it, Process.uid always returns 0.

We also need to investigate what code paths occur when root? is true or false, 
and make sure they make sense on Windows. For example, the file provider will 
attempt to set the owner and group of files that it manages when running as 
root, but the capability to obtain and set owner/group info is not implemented 
yet on Windows.



-- 
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.

Reply via email to