linux - 如何让 GNU-Screen 为所有用户共享 1 个 screen ?

标签 linux shell centos gnu-screen multi-user

如何启动一个可作为根用户和默认用户访问的 screen ? 因为现在当我使用以下命令以默认用户身份启动 screen 时:

screen -dmS test java $JAR nogui

执行命令后登录Root-User并尝试使用

screen -x test

它会说,它不存在,因为 screen 是用户绑定(bind)的,AFAIK。

那么有没有一种方法可以将 screen 共享给所有用户? 所以我可以通过任何用户的 screen 名称附加 screen 。

最佳答案

您可以启用多用户,并将允许的用户添加到您的列表中,如下所示:

# 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

然后

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

Thisthis推荐。

关于linux - 如何让 GNU-Screen 为所有用户共享 1 个 screen ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13962495/

相关文章:

linux - 同一服务器上的两个不同项目(不同的index.php)

linux - GNU BASH 命令更改图像大小和 DPI?

linux - 客户端 GlusterFS 的统计信息

linux - 从 UNIX 中的一行中获取选择性详细信息

javascript - 从源代码构建 V8

shell - 在 bourne shell 中从文件中的指定行号删除行

bash - 如何等到特定行出现在文件中

html - 'Server Issued an error response'(退出状态= 8)在wget中是什么意思?

php - 在 Centos 5.8 上安装 PHP5.4

python - 在 CentOS 上安装 Pycurl?