Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logout]

The tag has no usage guidance.

0
votes
1answer
20 views

System service running as user is terminated on logout

I have a system service that is executed for selected users. Name is serv@<uid> (<uid> is UID of the user). I want to share user's resource limits with the service (place it into user-<...
0
votes
0answers
59 views

Getting hard and soft lockups on reload / shutdown

I keep getting these lockups, regardless of the distro (Fedora, Debian Stable, Ubuntu). Happens when I run Linux from Live USB, and attempt to reload or shutdown. I have also tried installing Fedora ...
10
votes
1answer
882 views

Prevent Logoff from Killing tmux Session

I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did ...
-5
votes
1answer
315 views

Does exiting a login shell necessarily log out of the OS?

Bash manual says logout [n] Exit a login shell, returning a status of n to the shell’s parent. On a virtual console of Ubuntu, I first log in, and in the login shell, run: $ pstree -paus $$...
5
votes
2answers
346 views

What processes can survive logging out of Linux, and what not?

I am trying to understand what happens when we log out of Linux (Ubuntu specifically): How does a process initially request/notify the logging out process to perform logging out (by sending some ...
1
vote
1answer
235 views

How to log myself out of ssh, from a bash script?

Connected to a remote server via SSH. On occasion, I run a specific bash script. When certain conditions are met (it's work completed successfully), I wish to be automatically logged out of the SSH ...
0
votes
1answer
473 views

How to restrict a user from using tty?

i was wondering if it is possible to force log out a user (anyone other than root) when trying to login via tty (ctrl+tab+f1/f2/f3..). The user should be able to use pts with no problems. Using CentOS ...
0
votes
1answer
187 views

How to automatically log out the guest session user after idle time

On a PC for public use people enter very private data, then don't logout, which doesn't seem optimal, so I would like if anyone could tell me how to automatically log out the guest session user after ...
3
votes
1answer
208 views

Execute script prior to cinnamon logout (unsing MDM or other display manager)

I'm using cinnamon as desktop environment on my Linux Mint system. I want to automate a backup using unison: Unison shall be executed prior to each logout off my session. So I was looking for a ...
3
votes
1answer
6k views

Where is TMOUT being set in CentOS 7? How can I disable it?

I know I've tracked this down before but can't find the answer. When I start a bash shell on CentOS 7 (from X Windows GNOME or KDE), the variable TMOUT is set which causes the shell to timeout after ...
0
votes
1answer
105 views

I can not logout of guest session in mint 18.2.I have tried sudo but with no luck

I accidently logged in to linux mint 18.2.I turned the computer on and before logging in as administrator I wiped the keyboard and started a guest session.Now I can not logout of guest.
0
votes
1answer
39 views

Which file is read and executed when interactive non-login bash session exits?

Which file is read and executed when interactive non-login bash session exits? For example interactive login bash executes ~/.bash_logout if it exits.
3
votes
2answers
1k views

Log off remotely

I have worked yesterday with my collegue on his computer and I logged in to my cluster account (with ssh) but I left the session open and I am home now. I don´t know if he closed the session after me. ...
3
votes
2answers
1k views

.bash_logout is not running on exit of putty

I have some script on .bash_logout file. That script is running when a user is logging out using Ctrl+d or using exit command. If someone directly close putty application instead of logging out from ...
3
votes
1answer
830 views

Cannot login or ssh to non-admin Cygwin user this month but could last month and still can for other non-admin user

I've read what feels like almost all the Google links on variation of this issue but none of them seem to apply and this is just baffling me. In addition to my many Linux machines, I have a Windows ...
3
votes
1answer
2k views

How to close XServer session via command

I have a debian 8.5 computer. In order to create new session I run command startx. With this command a new session is created. How can I via command close this session and to return to previous one?
2
votes
0answers
719 views

How can I exit Openbox in an orderly manner?

When I exit Openbox by selecting Exit from its desktop menu or by running openbox --exit from a Terminal window, it seems to instantly kill all the processes and then terminate. This results in ...
1
vote
0answers
112 views

Log out current user programmatically or restart X server (work around xlock race condition)

We currently use xlock to provide a logout button for people who want to start using a computer locked by someone else. Unfortunately,this logout process is prone to a race condition, where the xlock ...
2
votes
1answer
460 views

Logout X Session When Application Closes

I'm setting up X with TWM so that folks here can access one specific graphical application. I have it setup so one can VNC in, log-in using XDM and have said application automatically start up. What ...
4
votes
4answers
920 views

How to execute bash (in script) with own .bash_logout file?

I want to execute bash in subshell and when user exits from subshell, I want to execute some other commands (like for saving logs to file). Something like this: run.sh: #!/bin/bash function ...
0
votes
1answer
626 views

Fresh Install of Mint 18 w/ Cinnamon — randomly logging out, can't log back in

A few days ago I made the plunge from Windows and put Linux Mint on my laptop (Thinkpad 440), the newest release. Things are mostly fine, except twice today I've been browsing the internet on Chromium ...
0
votes
1answer
103 views

What is the step by step procedure to analyze automatic logout on a linux ( ubuntu) system

After I login using UI, I am logged out. Shall I start by looking on log files ? Which one. I have root authority on the system. Is putting a "pause" or "sleep" in a script file that gets executed ...
1
vote
1answer
2k views

How to disable logging out after the screen going blank?

It might be a very naive question but I've not managed to solve it on my own and failed to find any solution online (I'm probably missing a keyword or two to get helpful search results) I am using ...
0
votes
1answer
506 views

/etc/issue file does not get reflect without login logout

I changed my /etc/issue file to display IP and system info with background color, and built a system which run on CentOS 7, but problem is when i deploy my machine on ESX it display regular /etc/issue ...
1
vote
1answer
1k views

Inactivity-based auto logout from all sessions

I want to be able to logout inactive sessions on my webserver. I have done this like so: 13. Restrict idle users. Timeout after a certain pre-defined amount of time. a. In the directory /etc/...
2
votes
3answers
3k views

Execute code in a logout script if exiting from a particular directory?

I have accounts on a number of different machines for testing a couple libraries I contribute to. Some of the machines are owned by others (like the GCC compile farm), and I'd like to keep them tidy. ...
1
vote
0answers
782 views

Stop /sbin/agetty and log out the session

I start agetty using /sbin/agetty 115200 /dev/ttyS2 vt220 to provide console access through my port ttyS2. From the other computer, I can create a connection, and upon opening, I am prompted with ...
1
vote
3answers
4k views

Fedora 23 - can't re-login after logout

After I logout I can't login back. I type the password but just got a blink, then the login screen is back again without error messages. I have to reboot to login again. Besides, even the Nautilus ...
1
vote
1answer
29 views

What is the proper way for a sysadmin to be notified about each user connection and disconnection?

In order to watch a machine, I'd like to be notified for example by e-mail each time any user connect to or disconnect from the machine (even root)? It is a Linux machine, but I am also interested if ...
1
vote
0answers
85 views

Catching a LXDE Logout with bash

I am using LXDE which runs my custom bash script as I login (defined in ~/.config/lxsession/LXDE/autostart). My problem is that this script is not stopped as I logout. It hangs waiting in a ...
4
votes
3answers
1k views

How to make Bash flush command history so it can be cleared?

I accidentally put a password on the command line and needed to clear Bash shell history. That was easy enough with echo "" > ~/.bash_history. I added the same to my .bash_logout just in case for ...
0
votes
1answer
33 views

Installer thinks there's an installation in progress on OS X

Every time I log off on my user account, an Installer prompt comes up asking "Are you sure you want to abort the installation?" and the options are Abort or Cancel. I am absolutely certain that I ...
1
vote
1answer
201 views

.bash_logout or .zlogout isn't parsed when autostarting xserver directly after login on console

I made a line: [[ -z $DISPLAY && $XDG_VTNR -le 4 ]] && exec startx (right out of the Arch Wiki) at the end of .xinitrc to start the Xserver right after login on console. Whenever I'...
1
vote
2answers
151 views

modify gnome's login/logout as user

My problem is following: I want to modify my login/logout so if I login a program is started, if I log off, it is closed (which it isn’t usually). (To let you know what I’m talking about – it’s ...
0
votes
1answer
475 views

How to remount filesystem at logout?

I need to clear tmpfs after each logout from system (Ubuntu x86_64).
12
votes
1answer
994 views

Why does running `killall init` as user log me out?

On multiple computers running Ubuntu 14.XX, I ran the command "killall init" as user, and was immediately logged out. I could log back in again without a problem. Why is this? What's going on behind ...
8
votes
4answers
24k views

command to log out of LXDE directly

To log out of LXDE, I can click on the "Start" menu, click "Logout" and when the menu pops up click on "logout" again. Or I can type lxde-logout in my terminal and when the menu opens, click on "...
3
votes
1answer
1k views

bash_logout only run command on last logout

This command is in my .bash_logout script to delete a temporary directory when I logout after running some processing: /bin/rm -rf /tmp/tmpdir/ However, I usually have more than one connection to a ...
9
votes
4answers
10k views

How to kill all open windows?

I want to close all windows appearing on my desktop. I've thought to do this through pkill, but I could only manage to kill them one at a time, which is not what I want. The end goal is to put this ...
5
votes
1answer
2k views

How to reboot/shut down gracefully in Awesome WM?

My current configuration uses kdesu shutdown -[rh] now to reboot/shut down. The entire shutdown procedure takes about 1-2 seconds. But after every boot Firefox says it was shut down prematurely, ...
12
votes
1answer
7k views

Force command to be run on logout or disconnect?

I'm logging in to a system via SSH and I'd like to be able to force a command to be run on logout, whether that's an intentional logout (exiting the shell) or because my SSH connection has dropped/...
4
votes
2answers
10k views

Can a shell script running in a ssh continue to run if the SSH instance closes? [duplicate]

I'm trying to write a shell script that does a lengthy batch job on a remote server. I'll be running the script over SSH. The thing is, I intend to start the script in the evening and collect the ...
1
vote
0answers
1k views

Blank screen after logging out of XFCE

I have a fresh install of Arch Linux with a few packages, including XFCE. I started XFCE using startxfce4, then used XFCE to Log Out. But now all I have is a blank screen. How can I get my prompt back?...
1
vote
1answer
4k views

Log off user using terminal

I am having a situation where I logged in to a RHEL 5.6 system and started VirtualBox. After closing the VirtualBox, I am having a situation where the menu bar which has the option to shutdown or lock ...
3
votes
0answers
60 views

Notifying program that X session is shutting down

Ok. I understand X session is a bit vague here so let me clarify what I mean by the phrase. I mean the situation where a person has been presented with a display manger screen ( eg xdm, kdm, gdm, mdm, ...
3
votes
1answer
907 views

Why won't this shutdown script work when executed by ACPID?

Based on this thread I modified my /etc/acpi/powerbtn.sh script to account for LXDE sessions: # getXuser gets the X user belonging to the display in $displaynum. # If you want the foreground X user, ...
2
votes
1answer
4k views

Run “logout script” for non-login shells

I have a .bash_logout script that I've put in the home directories of the vagrant and root users of a VM (created, as you have already guessed, with Vagrant) that I'm using for development. The ...
1
vote
1answer
472 views

vmtoolsd doesn't end after logout

There is a process 'vmtoolsd' /usr/bin/vmtoolsd -n vmusr left when a user logs out. I have to type root password to shutdown or restart because of this. How to prevent this from happening? And what ...
5
votes
1answer
6k views

Logout user with systemd

I start my window manager with systemd service units (following this tutorial). After I log in at tty1 the following gets executed in .zlogin (I'm using ZSH as a login shell): if [[ -z "$DISPLAY" &...