Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I know this is extremely basic, but I am using Ubuntu Linux and I have just typed in

sudo su

I entered my password and performed the actions that I had to get done. Now how do I stop being root and go back to being a normal user? I'm afraid I'll mess something up like rm -rf /.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Kevin Panko, Dave M, LawrenceC, Excellll Aug 5 '14 at 20:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 5 down vote accepted

User privileges are associated with processes. In this case, your superuser privileges are associated with the shell that ran when you did sudo su. You need to exit that shell. To do that use the aptly-named exit command.

If you haven't messed with the prompt definitions, superuser status is indicated by a # in the prompt instead of the user's $.

share|improve this answer
Thanks a lot. Immediately after writing my question, I tried "su my_name", because I realized it stands for substitute user. I also thought it worked, until I tried "exit" as you suggested, haha. – Brian Peterson Apr 16 '13 at 23:25
Also you can use hot key combination 'Ctrl+D' to to exit superuser shell. – AlexKM Aug 2 '14 at 7:38

When you su, a new login shell is started for the root user; to drop root privilege and go back to your usual login, simply logout or hit Control-D.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .