Method: Puppet::Util::Windows::Security#get_owner

Defined in:
lib/puppet/util/windows/security.rb

#get_owner(path) ⇒ Object

Get the owner of the object referenced by path. The returned value is a SID string, e.g. “S-1-5-32-544”. Any user with read access to an object can get the owner. Only a user with the SE_BACKUP_NAME privilege in their process token can get the owner for objects they do not have read access to.



130
131
132
133
134
# File 'lib/puppet/util/windows/security.rb', line 130

def get_owner(path)
  return unless supports_acl?(path)

  get_security_descriptor(path).owner
end