$HOME is forgotten only when a remote SSHed "screen" session is detached

1

Whenever I detach my remote "screen" session and ctrl a-c a new window, it opens the new window with "/" as the PWD. Another extremely annoying problem is that whenever the "screen" session is detached, the IRSSI IRC client cannot find the log files to write into them. It mostly happens with private messages.

This only happens when the "screen" is detached and goes away when I attach again.

The remote computer is running Ubuntu 10.10.

Yuval Langer

Posted 2011-05-31T08:24:39.837

Reputation: 231

How can you "ctrl a-c a new window" in a detached session? – user1686 – 2011-05-31T18:31:48.857

What filesystem your home directory is in? Is it an ordinary local filesystem, or encrypted (eCryptFS/EncFS), or remote (AFS/NFS/Samba)? (Use df -T ~ to find out.) Does it happen always when you detach (C-a d) or only when you close the SSH connection entirely? (If it's a secure network filesystem and you close SSH, the server might be destroying the keys used to access it.) – user1686 – 2011-05-31T18:34:09.447

@grawity, it happens when I reattach and "ctrl a-c". It is an encrypted local filesystem shipped with Ubuntu. If the screen session is detached and still works in the background, the encrypted home directory won't be closed. – Yuval Langer – 2011-05-31T18:56:26.220

@Yuval: Over the same SSH connection or a different one? – user1686 – 2011-05-31T18:59:22.863

1When all logins exit, the keys are forgotten. Should have mentioned it earlier. It's an headless machine. When I boot, the home directory isn't immediately available after I ssh to my account. I have to use "ecryptfs-mount-private" first to unlock it. – Yuval Langer – 2011-05-31T19:16:01.470

@grawity, I should have notified you by the @ thing. – Yuval Langer – 2011-05-31T19:36:11.863

No answers