Skip to main content

Questions tagged [logout]

The tag has no usage guidance.

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

Automatic log out while working in Cent OS Stream 8

While I am working, the device automatically log outs and shows the login screen. When I logged in, all my work got lost. Basically I am using terminal, firefox, sometime terminator app. Skype from ...
Rudra Prasad Sahu's user avatar
0 votes
0 answers
37 views

SDDM freeze when switching users on Debian fresh install

I have an issue with sessions switching in Debian/KDE plasma (problem with SDDM I think?). I've been using Ubuntu for years but I don't know much about the details of how Linux works. I installed ...
dorsantos's user avatar
1 vote
1 answer
45 views

Mounting directories on demand or until logged

As from object, I want to mount some directories (with binding) at login and possibly unmount them at logout. At the beginning I tought about autofs, but it dynamically creates mount points, that's ok ...
Daniele's user avatar
  • 468
0 votes
2 answers
532 views

Issue with SSH Client Alive Interval in sshd_config

We are currently using SSH for our project, and we need to implement a feature where SSH users are logged off after 1 minute of inactivity. Below are excerpts from our ssh_config and sshd_config files:...
karkator's user avatar
2 votes
0 answers
323 views

Is there a way to not exit a shell if jobs are stopped/suspended?

If one types exit and a job is stopped/suspended, the shell will print a warning message instead of exiting. 1: some_command & [1] 4018347 2: exit zsh: you have suspended jobs. But if one types ...
John Gordon's user avatar
1 vote
0 answers
41 views

Parameters OK at startup but problems when logging back

When I start the computer, everything works fine. But if I leave the computer, then when I log back to my session, I sometimes have 1 or 2 or 3 of those weird behaviors (not all, and not always, ...
Nicolas's user avatar
  • 11
1 vote
1 answer
173 views

Logout other users from KDE/plasma as root

I'd like to be able to automatically log out users from their KDE/plasma sessions by a script running as root. The log-out should happen "gracefully", i. e. applications should get a chance ...
Torsten Crass's user avatar
0 votes
0 answers
86 views

laptop with Ubuntu 20 logout when left unattended

On a laptop installed with Ubuntu 20.04 LTS when left unattended for tens-of-minutes/hours, sometimes I find it logged out. Searching around the web I found that traces of these behaviour can be found ...
CristiArg's user avatar
0 votes
0 answers
235 views

Modify or remove specific environment variables on every logout

Whenever a (graphical) logout occurs on Debian 11, I want to conditionally (e.g. if $XDG_DEBUG == 1, then ...) set or clear specific environment variables for the active user. The environment ...
Anderson's user avatar
  • 272
0 votes
0 answers
50 views

Keepass causes immediate Linux logout when using auto-type

Today I had to restart my computer after a total freeze of Linux. After that I now have the problem that KeepassXC 2.7.1 leads to a immediate logout of my Linux system as soon as I try to use the auto-...
Michael Hutter's user avatar
1 vote
1 answer
1k 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 ...
ZioByte's user avatar
  • 880
2 votes
1 answer
480 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 ...
mYnDstrEAm's user avatar
  • 4,398
1 vote
0 answers
255 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 ...
aqualls's user avatar
  • 11
0 votes
0 answers
203 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)...
Enlico's user avatar
  • 1,677
3 votes
2 answers
2k 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,...
ITChap's user avatar
  • 197
-1 votes
1 answer
356 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
2 answers
963 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 ...
Geovane Silva's user avatar
1 vote
0 answers
557 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 ...
Time4Tea's user avatar
  • 2,405
0 votes
0 answers
313 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 ...
ekv_56's user avatar
  • 57
1 vote
1 answer
678 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 ...
unloco's user avatar
  • 111
0 votes
1 answer
1k 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], ...
mathbekunkus's user avatar
1 vote
0 answers
139 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 ...
Skinper's user avatar
  • 11
0 votes
0 answers
213 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 ...
onuts793's user avatar
12 votes
2 answers
10k 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-<...
jiwopene's user avatar
  • 1,071
0 votes
0 answers
245 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 ...
rtqate's user avatar
  • 1
27 votes
2 answers
9k 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 ...
palswim's user avatar
  • 5,277
-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 $$...
Tim's user avatar
  • 103k
8 votes
2 answers
3k 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 ...
Tim's user avatar
  • 103k
1 vote
1 answer
3k 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 ...
Mtl Dev's user avatar
  • 503
1 vote
1 answer
5k 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 ...
Harish Agadi's user avatar
0 votes
1 answer
800 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 ...
J.Meyer's user avatar
  • 11
5 votes
1 answer
1k 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 ...
Stephan Richter's user avatar
10 votes
1 answer
32k 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 ...
PatS's user avatar
  • 614
0 votes
1 answer
159 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.
user305839's user avatar
0 votes
1 answer
68 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.
Martin's user avatar
  • 7,636
4 votes
2 answers
10k 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. ...
R.Bichi's user avatar
  • 45
4 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 ...
Sourav's user avatar
  • 1,343
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 ...
Jack Hamilton's user avatar
7 votes
2 answers
17k 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?
ThatsMe's user avatar
  • 1,005
4 votes
0 answers
2k 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 ...
Ben Kovitz's user avatar
1 vote
0 answers
340 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 ...
Sebastian's user avatar
  • 111
2 votes
1 answer
1k 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 ...
azurepancake's user avatar
4 votes
4 answers
2k 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 ...
TMSeth's user avatar
  • 45
0 votes
1 answer
785 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 ...
dain's user avatar
  • 145
0 votes
1 answer
170 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 ...
qqqqq's user avatar
  • 101
3 votes
1 answer
8k 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 ...
Mateusz Piotrowski's user avatar
0 votes
1 answer
1k 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 ...
Jeet's 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/...
Sriram's user avatar
  • 403
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
2k 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 ...
Kousha's user avatar
  • 575