1833774 Members
2549 Online
110063 Solutions
New Discussion

whoami

 
placitasmd
Frequent Advisor

whoami

When I issue a "whoami", I get back the name of the logged in user. But when I issue a "who am i" I just get my prompt back. Any ideas what might be causing this? This happens for all users.
Mark E Duhamel
3 REPLIES 3
Todd McDaniel_1
Honored Contributor

Re: whoami

It could be disabled.

You might check with your security group about what measures have been taken to secure your system. On some systems, commands like finger and who are disabled to prevent users from trying to see what Ids are logged in.
Unix, the other white meat.
Pete Randall
Outstanding Contributor

Re: whoami

I would suspect a corrupt /etc/utmp file, since "who am i" reports your initial login name from that file whereas "whoami" prints your current user name.


Pete

Pete
placitasmd
Frequent Advisor

Re: whoami

Solved problem by editing inittab to clear files on reboot.
Mark E Duhamel