The process of logging out or logging off when computer access is no longer needed. Tag should only be used on questions about log out or log off problems in official Ubuntu variants.
Questions tagged [logout]
346 questions
321
votes
15 answers
How can you log out via the terminal?
Is there a terminal command that will log you out of your current desktop session and take you back to the login screen?
TheXed
- 27,638
71
votes
2 answers
How to come out of root user?
I just gained root access following steps from the http://www.wikihow.com/Become-Root-in-Ubuntu. My prompt get changed from $ to # sign, indicating I have root access. Now I have come out or log out or disable root access. For that I tried
sudo…
60
votes
13 answers
How can I logout from the GUI using CLI?
I chose an Openbox DE at the time of login and the system took ages to load the DE. So I switched to CLI (Ctrl+Alt+F1) and rebooted my system (but I wanted to logout from the GUI and not restart the whole system).
My question is, can I issue some…
Ankit
- 6,989
41
votes
2 answers
Execute a script upon logout/reboot/shutdown in Ubuntu
I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I can add the line of code to the "logoff/shutdown"…
DirtyDenimDan
- 461
35
votes
10 answers
I am logged out immediately after logging in
After I log in to my user account on Ubuntu 13.04, I get automatically logged out after 1 second of black screen. This happens only with 1 specific user, and I can log in to another account fine.
What could have gone wrong? In which log files should…
wajs
- 451
29
votes
7 answers
How to make a jar file run on startup & and when you log out?
I have no idea where to start looking. I've been reading about daemons and didn't understand the concept.
More details :
I've been writing a crawler which never stops and crawlers over RSS in the internet.
The crawler has been written in java -…
RanZilber
- 393
- 1
- 4
- 5
26
votes
7 answers
How do I log out using only the keyboard?
In Ubuntu 11.04, Ctrl-Alt-Del gives me a menu with shutdown, hibernate, suspend and restart, but no logout. Is there a key combination to log out off Ubuntu? Is there a way to provide one?
drevicko
- 4,523
24
votes
4 answers
Ubuntu 11.04 randomly logs out in middle of use
I can see there is a question already.Since my problem is not quite the same but quite similar as far as I understand, I am asking it too.
Basically in the middle of my usage i.e. browsing net or running a random application. Ubuntu sends me to the…
sagarchalise
- 24,306
23
votes
4 answers
Run a script on login using ~/.bash_login
I need to run a script when I login and logout in my Ubuntu.
I tried to put the script in my ~/.bash_login but it didn't work.
Is there a better location where I can run my script?
My script is located in /home/gsd/script/login.sh and it's…
Gino Sullivan
- 343
19
votes
1 answer
Random and sudden logging out from my user session
I've an issue with ubuntu 14.10 and 15.04. I'm logged out from my user session randomly and suddenly.
Here are some log information:
kern.log
first logout:
May 3 16:34:59 rm-work kernel: [28558.808129] traps: metacity[7712] trap int3…
Aliot
- 311
18
votes
6 answers
Can't shutdown and logout from top panel in Ubuntu 14.04 LTS
I recently installed Ubuntu 14.04. Shutdown and logout from the top panel are not working.
They worked fine when installing the OS, but a few days back I installed fglrx drivers for my ATI graphics card. They didn't work and I got low resolution…
Sudheer
- 5,213
16
votes
1 answer
remotely log out of (graphical) gnome session
I have a (graphical) login session running on an office computer, and I'd like to log it out to save on a few computer resources.
I can ssh to the office box, but when I try gnome-session-quit I get this:
$ gnome-session-quit --logout…
drevicko
- 4,523
15
votes
7 answers
"Shutdown" or "Restart" logs out
While logged in as a sudo user, click the right top power icon, then select and click Shutdown menu, it comes up with a dialog asking if I want to close all programs. The dialog has two options: restart or shutdown. Choose either one logs me out.…
jenls
- 151
13
votes
6 answers
How to log out with a command in a gnome-less environment?
I installed various window managers (Awesome, dwm, etc.) from which I am not able to log out back to the login screen (gnome-session) in order to switch to another window manager. I need to reboot to do that, which is a waste of time (and can lead…
octosquidopus
- 397
10
votes
3 answers
What is a user-friendly way to log off other users?
What is the Ubuntu equivalent of this interface?
I am looking for a user-friendly method that the owner of a computer can use to log off other users without having to restart.
The case I'm concerned about is of the beginner-level user who needs…
ændrük
- 78,496