Hi. El Lunes, 6 de Junio de 2005 15:01, Markus Natter escribió:
On 6/6/05, Jostein Berntsen
wrote: 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.
I just assumed that such a simple and elementary tool must be hiding somewhere in the shoals of the linux cli toolbox.. ;) well.. it is somehow.. in the getpwuid function.. but there's no cli implementation of that function, like the id command..
such things are confusing me.. really shocking me.. but luckily they do not happen that often.. :-)
try this. getent passwd | cut -f 3,1 -d : | grep uid
Markus
-- Un Saludo. Carlos Lorenzo Matés