I am trying to use screen with another user than I logged in. The command is started with:
sudo -u user /usr/bin/screen -A -m -d -S screen ./nice_command
For reattaching I am using screen -x screen
, but it always says:
There is no screen to be attached matching screen
What is my mistake?
EDIT:
screen -x user/22969.screen
There is a screen on:
22969.screen (12/13/2011 11:37:43 PM) (Private)
screen -ls
to see which screen sockets you have and what their names are.No Sockets found in /var/run/screen/S-root.
.