[file owned] undocumented Windows defects
Closed / Fixed3613671fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 10 years ago
Descriptionplain2013-05-21 18:59:34
[file owned] is useless on Windows, always returning true. This is noted in comments, but not documented.
dkfplain2013-05-22 17:39:21
Documented in PORTABILITY section. Given that we really ought to have enough information to be actually able to answer [file owned] correctly, this bug remains open. Not sure who to assign it to (I know I don't know how to fix it!)
dkf Ticket [3613671fff]: 1 change
[History diff]2013-05-22 17:39:22
JKUwiki2013-08-16 12:37:00
I see the following problems:
- Windows >= Vista: A file created by an Administrator always have the owner for the Administrators group. (The process has to be invoked with "As Administrator").
- On remote filesystems the owner might be reported as Administrators, but we have to check if we are a member of this group on the remote system.
dkfhtml2013-09-09 09:50:59
Nothing there that I have any idea how to fix (it's presumably due to issues in the platform-specific parts and not in the generic layer or the documentation); assigning to submitter.
JKUwiki2013-09-13 21:04:29
How windows calculates the effective permissions: http://technet.microsoft.com/en-us/library/cc772184.aspx#sectionSection1
apnadkarniplain2016-07-09 11:17:13
Implemented in check-in [4fe9800f92]. Owner check is made using the actual owner SID stored on the file system versus the current process SID. Ownership based on group membership is NOT checked as (besides being much more complex) I don't even think that is the correct thing to do.
apnadkarni Closed ticket [3613671fff].
[History diff]2016-07-09 14:26:31
apnadkarni Ticket [3613671fff]: 4 changes
[History diff]2016-07-09 14:26:44
Log in (anonymous is fine) to add a comment.