in reply to Writeability of a file for a different user

What I would do is stat() the file, which will get you the mask and I think the ID# of the user and group. From that, you can parse through /etc/group and /etc/passwd on any Unix.
Information doesn't want to be free. It wants to be feline.