[aclug-L] Re: Question!
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
run: id
if that gives you your login name and user id, the problem is in whoami,
which may mean that wtmp or utmp is corrupt.
another test would be: ls -ld $HOME
if id fails, the c library routine getpwent(3) is either unable to parse
your /etc/passwd file (unlikely, but check it for # and too many :), or it
isn't looking there. the latter would be the case if you're using NIS.
personally, i avoid NIS like the plague, but as i recall, it gets triggered
by a line in /etc/passwd which begins with +.
Jeff wrote:
>
> On Tue, 12 Oct 1999, Mohammad Islam wrote:
>
> > I have got a puzzle at hand. Whan i am looged on as normal user in my
> > linux box and do a 'whoami' i got the following reply:
> >
> > whoami:cannot find username for uid 500
>
> can you send us the results of this:
>
> echo $LOGNAME in /etc/passwd...
> grep $LOGNAME /etc/passwd
> echo :500: in /etc/passwd...
> grep :500: /etc/passwd
>
> -jeff
> --
> about:mozilla
> And the beast shall come forth surrounded by a roiling cloud of vengeance.
> The house of the unbelievers shall be razed and they shall be scorched to
> the earth. Their tags shall blink until the end of days.
--
/*
* Tom Hull -- mailto:thull@xxxxxxxxxxx or thull@xxxxxxxxxx
* http://www.ocston.org/~thull/
*/
|
|