Kunaljain's Weblog

December 1, 2007

Difference between whoami and who am i

Filed under: Linux Tips & Tricks — Kunal Jain @ 06:54

When a user logs in as a root across the network, both the command whoami and who am i will show you root. However, when a user abc logs in remotely and runs su – root, whoami will show root whereas who am i will show abc

Advertisements

1 Comment »

  1. Thanks a lot for this definition 🙂

    Comment by Nirspote — March 2, 2009 @ 19:40 | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: