hectane / go-acl

Go library for manipulating ACLs on Windows
MIT License
120 stars 30 forks source link

owner sid is not coming #7

Open viv2793 opened 5 years ago

viv2793 commented 5 years ago

I need to retrieve the owner and permissions associated with a file. I followed the example given in readme file to get the SID of owner for a file. I'm getting some value of security descriptor but not getting sid associated with the owner. Not sure if security descriptor value is coming correct or not.

Below is the output that i'm getting: secDesc is the security descriptory handle and owner points to the sid of owner.

secDesc=== 983968 owner=== &{}