is possible file's uid (owner) on windows? tried use fileinfo.sys()
, works on linux. i'm stumped on 1 , can't figure out how uid.
the first problem file systems native windows supports file/directory ownership not have concept of "owner uid" because windows users have no uids either.
the security of windows nt line or kernels implemented using so-called "access control lists" (acls), , security principals (such users) identified using so-called "security identifiers" (sids). sid variable-length multi-field data structure passed around byte array.
another complication file on acl-enabled windows file system might have no owner @ (and no acl attached well); rare possible.
so... if part of explanation stating "there's no such thing entry owner's uid on windows filesystem" ok you, there it.
if not, , wanted ask "how security information entry on windows filesystem?", question gets more complicated. afaik stock standard library shipped go not have necessary wrappers around relevant bits of win32 api. implement this, you'll need either wrap them (it's not hard, after all) or try find helper package.
Comments
Post a Comment