Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Well, hello, this is my first time using ubuntu and I have seen that when I try to turn off the computer when other user sessiong is running it doesn't do nothing. Then I have to enter that user session and close it or turn off in it to do it work.

sorry if I use a bad english, it's because it isn't my native languaje.


share|improve this question
Please update your question to state which version of Ubuntu you're using. – Jo-Erlend Schinstad Jul 9 '12 at 0:32
This is a basic linux question, so I don't think it's relevant which version s/he's using. – MarkovCh1 Jul 9 '12 at 1:31

Assuming your account is an administrator on the computer (i.e. you have "root" or sudo privileges) this is very simple. Just open a terminal with Ctrl+Alt+T, and type:

sudo reboot

Enter your password when prompted, and the computer will shut down, regardless of what other sessions are open. Unsaved data in any applications open in the other sessions (or in yours) will be lost.

If you wish to only shutdown and not restart, the alternative is:

sudo shutdown -P now

Note: if you do not have sudo privileges, then you cannot do this. You can only shutdown when no other sessions are open; if they are, "shut down" will simply log you out.

share|improve this answer

Your Answer


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.