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

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 comment

Create a free website or blog at WordPress.com.