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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With