Reversing UID's

Is it possible given a uid to determine information about the person with the uid? An example would be simple information regarding what group and the name of the person associated with that uid. It seems there is probably an easy staring me in the face but i cant seem to find it...

Just grep through /etc/passwd

grep "^[^:]*:[^:]*:`id -u`:.*$" /etc/passwd

To find information about yourself, for example.

Cheers
ZB

Thank's Bob,
That is definately a pretty way to write it.
I appreciate it, I think what i want is something a little more custom, but at least I'm on the right track now, i'll make it myself if i have to.
Is there anyplace else that the uid is associated with user information other than in /etc/passwd ?

Thanks again!

yes,

It depends how your server is configured (NIS, NIS+ ...)

user to group mapping is in
/etc/group