Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
multi user screen sessions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Mon Feb 28, 2005 3:57 am    Post subject: multi user screen sessions Reply with quote

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
View user's profile Send private message
shadow255
Guru
Guru


Joined: 04 Apr 2003
Posts: 412

PostPosted: Mon Feb 28, 2005 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Mon Feb 28, 2005 7:43 pm    Post subject: Reply with quote

Thanks, that works great.
_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum