The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
35 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 ...
0
votes
0answers
15 views

Accessing /home fails in gdm PostSession script

I am trying to have a script do some cleanup items when a user logs out of Gnome2 on Redhat. I tried making a script in /etc/gdm/PostSession/Default and it can't access /home. #!/bin/sh ls -l /home &...
0
votes
0answers
32 views

What does system do to execute a logout?

I want to take a deep look on what system really does to execute a logout. For example, we can follow this guide to examine what system does in a boot/shutdown process. So I wonder if there are some ...
1
vote
1answer
79 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
45 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 ...
0
votes
1answer
80 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/...
3
votes
2answers
69 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
86 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 ...
0
votes
2answers
726 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 ...
0
votes
0answers
59 views

Lightdm - call script on shutdown

I configured lightdm to call the following cleanup-script. Here the corresponding line in the lightdm.conf: ... session-cleanup-script=/usr/local/bin/call.logout.sh ... Here the script, which is ...
1
vote
1answer
13 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
30 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
163 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
22 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 ...
1
vote
1answer
72 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
51 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
179 views

How to remount filesystem at logout?

I need to clear tmpfs after each logout from system (Ubuntu x86_64).
12
votes
1answer
894 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 ...
4
votes
4answers
9k 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 "...
2
votes
1answer
496 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 ...
6
votes
3answers
2k 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 ...
4
votes
1answer
873 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, ...
7
votes
2answers
2k 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/...
2
votes
2answers
5k 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
694 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
3k 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
1answer
696 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, ...
1
vote
1answer
2k 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
439 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 ...
3
votes
0answers
856 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" &...
2
votes
1answer
4k views

How to enter/choose session after logout without password in (Linux Mint) Xfce?

I have Linux Mint 14 Xfce (4.10) and have also installed LXDE desktop, so I can choose between these sessions if I want. Normally I would set one as default and at startup I am not asked for username&...
1
vote
1answer
134 views

Is there a way to execute a command when a user logs off from X?

I am trying to execute two commands one on logon and one on logoff. For the log on one, I put my script into /etc/X11/xinit/xinitrc.d and this works. I'd like it to be system-wide so I can use any WM....
3
votes
1answer
12k views

What killed tty main process suddenly?

I'm doing some stress testing of a piece of software that can run shell commands. Periodically, the system logs me out during stress testing. My record of the commands that triggered this always ...
13
votes
3answers
3k views

How can I run a script during GNOME logout if I don't have admin privileges?

I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine. However, all solutions I have found have not been enough for me: ...
6
votes
1answer
1k views

Meaning and commands for Ctrl+Alt+Del

In my gnome GUI desktop of Ubuntu 12.04, Ctrl+Alt+Delete will log out instead of rebooting. But I was told that Switching to a text-based virtual console and pressing Ctrl+Alt+Delete will ...
10
votes
4answers
1k views

How do I shutdown, reboot and logout the system from the command-line?

I would like to do that using the command-line, because sometimes my computer freezes and I need to force a shutdown (I know it's not good to the hardware). And: What is the difference between Halt ...
2
votes
1answer
348 views

Script to let the user cancel a shell logout

I want to write a script to display a message and possibly cancel a logout from an interactive shell. This is because I often run background jobs in some of my shells and in the spur of the moment I ...
9
votes
2answers
1k views

How can I tell a running process to disregard SIGHUP? [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? I have a very low-end "server" running Debian Squeeze that I occasionally ssh to. The system tends to ...
2
votes
1answer
2k views

Remove shutdown/reboot options from logout window

In my CentOS5 installation in KDE, users get presented the options to terminate the session, reboot, and shutdown. Since this computer should always remain on, I'd like to remove the reboot and ...
2
votes
1answer
1k views

Randomly logging out

My Xubuntu 10.04 system logs me out seemingly at random. How can I diagnose why this is happening and correct it?
4
votes
3answers
4k views

Gnome Logout from command

How to get logout from Gnome session via command line ? Also Is there any way in GNOME to do "switch user" from command line ?
5
votes
6answers
8k views

How can I logout from a graphical environment from the command line?

Part of the beauty of trying out alpha releases of operating systems is that things will break, including things we take for granted. Today it's the turn of the logout button. So, how do you log out ...