Robert Shearman rob@codeweavers.com writes:
We don't have a mapping between NT SIDs and Unix user IDs in Wine, so if the owner is different then there isn't much we can do with it.
You can't report the correct user SID, but you can still report more correct permissions for the current user by checking IRWXO instead of IRWXU if the user is not the owner. Another possibility would be to have some sort of "other user" SID that all uids map to except the current one.