Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make GNU-Screen share 1 Screen for all Users?

How can I start a Screen that is accesable as Root-User and Default-User? Because now when I start a Screen as Default-User with the command:

screen -dmS test java $JAR nogui

After executing the command and logging in into Root-User and try to use

screen -x test

It will say, it doesn't exist, because Screen are User-Bound, AFAIK.

So is there a way that the screen is shared to all users ? So I can attach the Screen by the Screen name from any user.

like image 435
user1621988 Avatar asked Dec 19 '12 22:12

user1621988


1 Answers

You can enable multiuser, and add the permitted user to your list, like this:

# userA opens a screen
screen -S test

# set multiuser
Ctrl-A :multiuser on

# add the user to join your session to the ACL list:
Ctrl-A :acladd root

then

# root get the screen by userA
screen -x userA/test

This and this are recommend.

like image 128
sleepsort Avatar answered Sep 20 '22 23:09

sleepsort