Questions tagged [logout]
The logout tag has no usage guidance.
78
questions
1
vote
0
answers
33
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, ...
1
vote
1
answer
24
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 ...
0
votes
0
answers
42
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 ...
0
votes
0
answers
123
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 ...
0
votes
0
answers
38
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-...
1
vote
1
answer
717
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 ...
2
votes
1
answer
327
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 ...
1
vote
0
answers
158
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 ...
0
votes
0
answers
151
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)...
2
votes
2
answers
1k
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,...
-1
votes
1
answer
184
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, ...
1
vote
2
answers
628
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 ...
1
vote
0
answers
406
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 ...
0
votes
0
answers
283
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 ...
1
vote
1
answer
510
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 ...
0
votes
1
answer
803
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], ...
1
vote
0
answers
130
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
...
0
votes
0
answers
197
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 ...
9
votes
2
answers
8k
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
0
answers
233
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 ...
27
votes
2
answers
8k
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
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 $$...
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 ...
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 ...
1
vote
1
answer
4k
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
1
answer
719
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 ...
5
votes
1
answer
984
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 ...
10
votes
1
answer
28k
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
1
answer
127
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
1
answer
61
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
2
answers
8k
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
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 ...
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 ...
6
votes
2
answers
13k
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?
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 ...
1
vote
0
answers
318
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
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 ...
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 ...
0
votes
1
answer
758
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
1
answer
135
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 ...
3
votes
1
answer
7k
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
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 ...
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/...
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.
...
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 ...
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 ...
1
vote
1
answer
40
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
0
answers
142
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 ...
9
votes
3
answers
5k
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
1
answer
37
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 ...