Score:0

ubuntu 20.04 Desktop: screen terminates after logoff

my flag

afair

$ screen -v
Screen version 4.08.00 (GNU) 05-Feb-20

is method to run commands continuously after logout. But on my 20.04 this doesn't work.

user@laptop:$ ssh user@machine
   user@machine:$ screen -ls
   No Sockets found in /run/screen/S-user
   user@machine:$ date
   Mi 7. Jun 14:09:19 CEST 2023
   user@machine:$ screen
      user@machine:$ sleep 60
       (ctl-a d)
   user@machine:$ screen -r
   [detached from 501987.pts-0.machine]
   user@machine:$ logoff
user@laptop:$ ssh user@machine "screen -ls; date"
No Sockets found in /run/screen/S-user
Mi 7. Jun 14:09:32 CEST 2023
user@laptop:$ 

"sleep" is just an example, ddrescue or testdisk is what i want to run eg.

SElinux is not installed.

Discovered no hints in /var/log/*.

Any ideas? Or having the same issue?

Kind regards Maniac_

Marco avatar
br flag
Please add the content of `/etc/systemd/logind.conf` and any file in `/etc/systemd/logind.conf.d/` and `/usr/lib/systemd/logind.conf.d/` to your question.
Score:0
my flag

THX for the hint!

$ cat  /etc/systemd/logind.conf.d/killusrproc.conf
[Login]
KillUserProcesses=no

Switching to "no" was the solution for me!!! Just beeing "poettered"

THANKS!!!

Kind Regards

maniac__

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.