Having Problem re-attaching to an attached "screen", any ideas?
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 Code:
screen -r user1/ 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 |
You might want to try changing permission on /dev/pts/0 since the initial complaint is it can't open that device.
Presumably /dev/pts/0 is the pseudo-tty you're current login session is on (you can verify by typing "tty" command). Also pseudo-ttys are used by X programs typically. While it doesn't seem likely to me perhaps your issue is related to Xauthority. When you ssh into a system using tunneling (see -x and -X options of ssh) it creates a .Xauthority file in your home directory and sets your DISPLAY variable. When you su to root in a tunneled ssh you lose both the DISPLAY and the permissions to .Xauthority as it is restricted to the user that logged in. There is a way to make it work though: Do the ssh. type echo $DISPLAY and save the value you see. Use chmod to allow access to $HOME/.Xauthority for the user you initially logged in to other users such as root. su - to new user type export DISPLAY=<value you saved> type export XAUTHORITY=<path to your original $HOME/.Xauthority>. |
Hi There,
Thanks for the reply, i've looked at the permissions setting of /dev/pts/0 and chmod to be world accessible just temporarily to see if that did help on this issue, which it un-fortunately didn't so i checked out the .Xauthority file and the DISPLAY variable, the .Xauthority was blank/empty and the DISPLAY variable is un-set. Code:
# cat .Xauthority MJ |
All times are GMT -5. The time now is 11:41 PM. |