Linux Labs· Linux FoundationsLab 2 of 26

Become Another User with su and sudo

Work as someone else without logging out: start a real login session with su, run single commands as another user, read what sudo allows and what it logged, and give a colleague admin rights through group membership.

  • Beginner
  • 25 min
  • Not rated yet
  • A real environment in your browser
  • You run the commands yourself
  • Your result is checked automatically

In this moduleLinux Foundations

  1. Find Answers on the Machine Itself25 min
  2. Become Another User with su and sudoYou are here
  3. History, Aliases, and Shell Startup Files30 min
  4. Write Your First Bash Scripts30 min
  5. Bash Scripts That Loop Over Input30 min