Vu Pham wrote:
Hi all,

Is there any function to get the user name if uid is known, and vice versa ?
Similar for group.

Thanks,


cat /etc/passwd | grep ^.*:x:500: | awk -F: '{print $1}' cat /etc/passwd | grep ^.*:x:[0-9]*:500 | awk -F: '{print $1}'

This is probably not what you want but it does return a name from uid or gid...

--
James McDonald
Singleton Australia

61+ (0)2 65712401
61+ 0428 320 219

If you stand on your head, you will get footprints in your hair.

Linux 2.6.0-james2 #3 Wed Oct 29 10:25:46 EST 2003 athlon i386 GNU/Linux
22:50:00 up 1 day, 10:54, 2 users, load average: 0.07, 0.24, 0.44
_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to