Hi All,
When i try to re-attach my screen which is definitely there somewhere, i get a less than helpful error message. Has anyone come across it before, or had similar issue?
Code:
user1@hostname> screen -ls
There is a screen on:
23127..hostname (Detached)
1 Socket in /var/run/uscreens/S-user1.
user1@hostname> screen -r
Cannot open your terminal '/dev/pts/0' - please check.
user1@hostname> screen -r 23127..hostname
Cannot open your terminal '/dev/pts/0' - please check.
user1@hostname> screen -r 23127.`tty`.hostname
Must run suid root for multiuser support.
user1@hostname>
I know the problem is because i am sshing to root and then 'su - user1'? The "su" causing the issue here...therefore it can't grab the terminal perhaps because its actually root's terminal? OR something like that. But how might it be possible to do this, attach to a screen of a different user from root. It should be possible to:-
Code:
screen -r user1/
Cannot access /var/run/screens/S-user1: No such file or directory
But you see the problem here is that root seems to keep it sockets in '/var/run/screens/S-root'
where as user1 (perhaps all standard users), keep their socket details in '/var/run/uscreens/S-user1'
So where is the path set that it making 'user' and 'root' screens/sockets be in a different path. Is this something i can set when trying to get the screen back with "screen -r <path_to_socket>"
Running on SUSE Linux Enterprise Server 10
Cheers,
MJ