View previous topic :: View next topic |
Author |
Message |
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Mon Feb 28, 2005 3:57 am Post subject: multi user screen sessions |
|
|
I've tried searching the forums, but haven't found any threads about multi user screen sessions.
I am able to have a multi user screen session as long as the it's the same user. So technically, it's just a single user connected to their own session twice.
What I would like to be able to do is have multiple different users attach to a single screen session.
In my ~/.screenrc I have
Code: | multiuser on
acladd test
|
where test is another user that I'm trying to get attached to my screen session.
As myself, I run
Code: |
gkelly@lab9:~$ screen
|
and as the test user:
Code: |
test@lab9:~$ screen -x
There is no screen to be attached.
test@lab9:~$ screen -ls gkelly/
There is a suitable screen on:
5959.pts-0.lab9 (Multi, attached)
1 Socket in /var/run/screen/S-gkelly.
|
So how can I attach to this "suitable screen" ?? _________________ Top notch image hosting. Great for screen shots! http://www.imagelink.org |
|
Back to top |
|
|
shadow255 Guru
Joined: 04 Apr 2003 Posts: 412
|
Posted: Mon Feb 28, 2005 4:12 am Post subject: |
|
|
You should have spent more time in the man page for screen
Code: | -r [pid.tty.host]
-r sessionowner/[pid.tty.host]
resumes a detached screen session. No other options (except com-
binations with -d/-D) may be specified, though an optional prefix
of [pid.]tty.host may be needed to distinguish between multiple
detached screen sessions. The second form is used to connect to
another user's screen session which runs in multiuser mode. This
indicates that screen should look for sessions in another user's
directory. This requires setuid-root. |
So for what you posted, you should have user test issue the command:
Code: | $ screen -r gkelly/5959.pts-0.lab9 |
_________________ Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy |
|
Back to top |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Mon Feb 28, 2005 7:43 pm Post subject: |
|
|
Thanks, that works great. _________________ Top notch image hosting. Great for screen shots! http://www.imagelink.org |
|
Back to top |
|
|
|