Questions tagged [logout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

How to ensure user processes are killed on logout?

I have problem logout on my server (and all debian-derivative servers) do not kill all user processes. I seem to understand this is done for efficiency reasons for workstations (assumption appears to ...
user avatar
  • 738
2 votes
1 answer
43 views

How to log out all inactive terminal sessions in GNU/Linux?

Since I switched to Wayland on Debian11/KDE starting the computer from standby in around 90% of cases shows a black screen and one needs to use ctrl+alt+f{id} and run loginctl unlock-session {id2} to ...
user avatar
  • 3,500
1 vote
0 answers
17 views

Occasionally RHEL 7 logout process does not complete

An unusual occurrence but mystifying. Can't replicate the described situation, which adds to the mystery. Using MATE on RHEL 7. Needed to log out of one profile in order to log in using another ...
user avatar
  • 11
0 votes
0 answers
13 views

GNU Screen closes BEFORE ending execution after I come back

I wanna transfer a big archive to a Debian machine and see progress. I also want to be able to log out of my server remotely and the file transfer continues when I'm logged off. I've done this a lot ...
user avatar
0 votes
0 answers
53 views

Random log out of tty1 while typing

I experienced a sudden log out from tty1 where I run the i3 window manager. While typing stuff, the screen went black, and in a matter of seconds I was back to the login screen (I use no login manager)...
user avatar
  • 1,012
0 votes
0 answers
14 views

Issue of automatic web sites logoff on one browser, multi Linuxes

How do we prevent automatic web sites logoff on a browser on PC having 2 different Linux OS installed with and sharing the same DE, that browser, and HOME and that browser directory (the browser auto ...
user avatar
0 votes
0 answers
101 views

Disable automatic log out

I am regularly rendering 3D scenes and while doing that my OS automatically logs me out because i am usually inactive while rendering. How can i turn that off? Distro: newest Arch version Desktop ...
user avatar
  • 13
0 votes
0 answers
83 views

Closing windows in Xfce4

I use the xfce4 window manager (xfwm4-settings) to configure my some of my shortcuts. One of them ("Super+Esc") is supposed to close the focused window, which works when windows are opened. ...
user avatar
  • 43
0 votes
0 answers
34 views

Automatic logged out even while doing activity

I am new to Linux mint. I got logged out automatically even while doing some activity. It is happening after random periods of time. OS : Linux mint XFCE Version : Uma
user avatar
  • 101
2 votes
2 answers
436 views

How to run a command every time that I exit a zsh shell (including non-login shells)

I have been trying to run a command to clean up some of my temporary files every time I exit a shell. I initially thought that this would be the job of .zlogout but it doesn't seem to be executed if I,...
user avatar
  • 177
-1 votes
1 answer
46 views

Challenge: unable to logout of linux

I'm currently doing a challenge where I am suppose to break out of a Linux box. The user for this box isn't part of the sudo group and I can't add this myself to the sudo group nor can I exit, logout, ...
user avatar
1 vote
1 answer
211 views

logout after 30 minutes inactive XFCE4

I have a little problem here but before we go as specifications, I use a Debian 10 virtual server on a VMware, GUI Xfce4, and users make terminal access to it via RDP That said, my idea is that when ...
user avatar
0 votes
0 answers
230 views

Is there a logout equivalent of ~/.profile?

The file ~/.profile can be used to specify commands to run when a user logs in to a session. This has the advantage over ~/.bash_profile in that it works for shells other than bash and also works for ...
user avatar
  • 2,134
0 votes
0 answers
136 views

Run script at logout/shutdown in CentOS7

I have a couple of scripts that I would like to run on logout/shutdown and can't find the place to add them. I use mate-session-properties frequently to add scripts to run on startup - where is the ...
user avatar
  • 47
0 votes
1 answer
262 views

Gracefully close chrome on shutdown

I would like to close chrome before shutdown/restart/logout The reason for this is to have chrome restore the last session automtically and without displaying the restore button I tried putting a ...
user avatar
  • 101
0 votes
1 answer
509 views

Debian: logging out causes services to become unavailable

I run Bullseye with XFCE on a Dell Inpiron 5567. I have two users on this system: mine and a Guest; whenever I log out from whichever was logged in first and log in again, [b]even as my user[/b], ...
user avatar
1 vote
0 answers
106 views

Linux Mint 19 Tara logs out unexpectedly or clossing apps

I am having problems with Linux. Randomly, it logs off and closes all my apps. At other times, it also shuts down some apps without logging me out. Can you help me? Specs: Linux Mint 19 Tara 16gb RAM ...
user avatar
  • 11
0 votes
0 answers
152 views

How do I get Oracle Solaris 11.3 to lock the screen automatically

Anybody know how I can get Oracle Solaris 11.3 to lock the screen instead of automatically logging out after a default period of time? The time frame does not matter; it's the fact that I get logged ...
user avatar
  • 1
4 votes
2 answers
4k 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-<...
user avatar
  • 782
0 votes
0 answers
193 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 ...
user avatar
  • 1
23 votes
2 answers
6k 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 ...
user avatar
  • 4,151
-5 votes
1 answer
1k 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 $$...
user avatar
  • 90.6k
7 votes
2 answers
2k 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 ...
user avatar
  • 90.6k
1 vote
1 answer
2k 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 ...
user avatar
  • 473
1 vote
1 answer
3k 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 ...
user avatar
0 votes
1 answer
571 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 ...
user avatar
  • 11
4 votes
1 answer
743 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 ...
user avatar
7 votes
1 answer
23k 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 ...
user avatar
  • 391
0 votes
1 answer
123 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.
user avatar
0 votes
1 answer
52 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.
user avatar
  • 6,378
3 votes
2 answers
6k 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. ...
user avatar
  • 35
3 votes
2 answers
3k 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 ...
user avatar
  • 1,101
5 votes
1 answer
2k 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 ...
user avatar
5 votes
2 answers
7k 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?
user avatar
  • 279
4 votes
0 answers
1k 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 ...
user avatar
1 vote
0 answers
270 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 ...
user avatar
  • 111
2 votes
1 answer
967 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 ...
user avatar
4 votes
4 answers
1k 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 ...
user avatar
  • 45
0 votes
1 answer
721 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 ...
user avatar
  • 145
0 votes
1 answer
131 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 ...
user avatar
  • 101
3 votes
1 answer
6k 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 ...
user avatar
0 votes
1 answer
991 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 ...
user avatar
  • 1
1 vote
1 answer
2k 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/...
user avatar
  • 373
3 votes
3 answers
7k 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. ...
user avatar
1 vote
0 answers
1k 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 ...
user avatar
  • 565
1 vote
3 answers
5k 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 ...
user avatar
1 vote
1 answer
35 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 ...
user avatar
  • 336
1 vote
0 answers
121 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 ...
user avatar
6 votes
3 answers
3k 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 ...
user avatar
0 votes
1 answer
35 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 ...
user avatar