After logging out of SSH, screen sessions disappear on Arch Linux
- by Ivan
On Arch Linux (I'm on a single dedicated server, where my domain name points to only one IP), when I SSH into a user (say, for example, user mc), and then do
screen -S test
(or -dmS, the resulting issue is the same), run a command, and then detach from it, then exit out of my SSH session, and log back in, the screen session disappears.
screen -ls
returns
No Sockets found in /run/screens/S-mc.
The only way I can reattach to my sessions is if I never logged out of my SSH.
How do I fix this?
I do have read/write access in /run/screens/S-mc
I detach from screen sessions with Ctrl-A,D
disown -a && exit gives me the same problem
shopt huponexit returns "huponexit off"
There is no ~/.logout, and ~/.bash_logout is empty, with 3 lines of comments, telling me it's the ~/.bash_logout file
ls -l /usr/bin | grep screen
returns
lrwxrwxrwx 1 root root 12 Oct 31 2012 screen -> screen-4.0.3
-rwsr-xr-x 1 root root 363672 Oct 31 2012 screen-4.0.3