All users have encrypted home folders on one server I maintain and one of the users (non-human account) has useful resources in its home directory shared via Apache.
In order to keep the user's home folder mounted, somebody will have to log in as that user. I achieve this by logging into that server using SSH and
su that user. However, sometimes I forgot about that and logs out or closes the ssh client and other uses lose access to those files.
I am just wondering is there any command I can run to keep that user logged in?
screen, but it does not work in
su via ssh:
$ screen Cannot open your terminal '/dev/pts/0' - please check.
I have also tried
cat <> /dev/zero but the process is still terminated after I log out.