In message <20020518031550.IIUQ7217.io / there>
alwagner / tcac.net writes:

> I am unfamiliar with Etc.  What am I doing wrong here?
> 
> irb(main):005:0> Etc::getpwnam('0').name
> ArgumentError: can't find user for 0
>         from (irb):5:in `getpwnam'
>         from (irb):5

The message shows all.  There's no user whose name is `0'.  `nam' is a
shorthand of `name', not `number'.  If you want to get a passwd entry
for a given user id uid, use Etc.getpwuid(uid) instead.

See Also: getpwnam(3), getpwuid(3), passwd(5).


-- 
kjana / dm4lab.to                                   May 18, 2002
The more haste, the less speed.