Well, I've given up trying to figure out the rest of the file permissions stuff (LookupAccountSid, etc). I'm just not getting it. I've committed what I've done so far (now in the toplevel win32-file project in the CVS repo) in file.rb. Any help appreciated. Regards, Dan