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 -lsto see which screen sockets you have and what their names are. – micke Dec 13 '11 at 22:18No Sockets found in /var/run/screen/S-root.. – CSchulz Dec 13 '11 at 22:21