in reply to whoami?

If you're looking for permission sets, then you're interested in chmod instead. chown changes the owner of a file. you can also look into the perl standard variables $>, $<, and $(, $), which return uids and gids, respectively.
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.