You are not logged in.

#1 2009-11-11 23:51:06

tladuke
Member
Registered: 2009-07-23
Posts: 176

How do I reattach to this screen session?

I created an rtorrent daemon like explained in the rtorrent wiki article

I can attach with ssh -t rtorrent@192.168.1.10 'screen -r'

but if I'm already ssh'd in:

#screen -r
There is no screen to be resumed.


#screen -list
No Sockets found in /tmp/screens/S-root.

Offline

#2 2009-11-11 23:52:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: How do I reattach to this screen session?

log in as the rtorrent user, not root...

Offline

#3 2009-11-11 23:56:04

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: How do I reattach to this screen session?

that works, but

su rtorrent
screen -r
Cannot open your terminal '/dev/pts/1' - please check.

does not.

Any way to get in there? I usually login as a user that isn't rtorrent.

Offline

#4 2009-11-12 13:56:30

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: How do I reattach to this screen session?

This is one of those RTFM situations. Since I've never been graced with such an opportunity before, I'm going to take this now. So tladuke, RTFM! (man screen to be exact.)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2009-11-12 15:52:17

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: How do I reattach to this screen session?

You should also NOT have root login enabled over ssh. It's just asking to get your system taken over.

Offline

#6 2009-11-14 17:09:44

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: How do I reattach to this screen session?

Sorry, guys; The man page is huge and I have no idea what I'm looking for.

Offline

#7 2009-11-14 17:51:43

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: How do I reattach to this screen session?

Start with the options you know:

-r [pid.tty.host]
-r sessionowner/[pid.tty.host]
     resumes  a  detached  screen session.  No other options (except combina‐
     tions 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.

aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#8 2009-11-16 01:45:44

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: How do I reattach to this screen session?

does it not having a tty have anything to do with it?

$ screen -ls
There is a screen on:
        3992..ht-ion    (Detached)
1 Socket in /tmp/screens/S-rtorrent.

I can't get it sad

Offline

#9 2009-11-16 02:06:31

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How do I reattach to this screen session?

What does "ls -l /dev/pts/ show? How do you start that screen?

-edit-

It's "su rtorrent" which breaks things. Login directly as rtorrent and it will work.

Last edited by lucke (2009-11-16 02:27:37)

Offline

Board footer

Powered by FluxBB