in reply to Re^4: How to get group ownership of a file
in thread How to get group ownership of a file

And this for the username:
perl -e '$username=getpwuid("33197");print "username: $username\n"'