http://qs321.pair.com?node_id=941409


in reply to getpwuid issue

See Win32::Security::NamedObject, explicitly ownerSid.

For background, the Win32API C is either GetFileSecurity() (get OWNER_SECURITY_INFORMATION) or GetNamedSecurityInfo(). Both with return the SID of the owner, which you have to convert to a user name.