SUN
310-200 · Question #222
The user1 is logged in at the console and assumes the identity of root using the su command. Which user identities do the whoami and who am i commands report?
The correct answer is A. whoami reports root, who am i reports user1. See the full explanation below for the reasoning.
Question
The user1 is logged in at the console and assumes the identity of root using the su command. Which user identities do the whoami and who am i commands report?
Options
- Awhoami reports root, who am i reports user1
- Bwhoami reports user1, who am i reports user1
- Cwhoami reports user1, who am i reports root
- Dwhoami reports root, who am i reports root
How the community answered
(30 responses)- A77% (23)
- B13% (4)
- C3% (1)
- D7% (2)
Community Discussion
No community discussion yet for this question.