6 Jun
2005
6 Jun
'05
12:45
On 06.06.05,13:01, Markus Natter wrote:
Hi list,
this is an odd problem, yet simple..
I could not find a command line tool that would return me the user name belonging to a UID (number) independent from the underlieing auth mechanism.
It should be kind of a reverse "id" command.. the way an "ls" uses it.
It seems so trivial to me, but I didn't find an answer googling for it.
Any ideas?
Markus
You can try this too:
awk -F ":" '/user/{ print "username: " $1,", uid: " $3 }' /etc/passwd
Exchange user with the username to be searched for.
- Jostein
--
Jostein Berntsen