Jump to content

NTFS File Owner


steve8tch
 Share

Recommended Posts

getowner.cSome time ago this question was discussed.

NTFS Ownership and ACLs

I have found SubInAcl impossible to use with StdOutRead.

I have found this other utility called GetOwner.exe

GetOwner - a small 20k utility

It just does what it says - nothing fancy - and I can pick up the result in StdOutRead.

Does anyone fancy a challenge. ....a UDF perhaps.. :whistle:

The source code for this is available

It calls "GetNamedSecurityInfo" and "LookupAccountSid"

These should be available through DllCall("advapi32.dll",.......) - I'm just not up to speed yet on all this dll stuff :)

Attached is GetOwner.c

getowner.c

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...