Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
add comment

2 Answers 2

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. –  Bepetersn Apr 16 '13 at 23:25
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.