0

I've followed this guide http://centoshelp.org/resources/scripts-tools/a-basic-understanding-of-screen-on-centos/

Now, seems like I am having trouble running screen with non-root user, because everytime I run screen it only shows [remote detached]

what does it mean?

2
  • How exactly do you run it? Just screen, or do you use any parameters? Are you sure that it isn't running? Have you tried a screen key combination like ^a ?? Commented Sep 30, 2014 at 9:43
  • @MartinvonWittich I type screen without params, I got [remote detached], key combinations only work on root.
    – arvil
    Commented Oct 2, 2014 at 18:37

2 Answers 2

0

Have you tried:

screen to start a new screen session

screen -rd to attach to one that is running

ctrl-a, d to disconnect from an attached session

3
  • yes sir. It works great with root user. But my non-root user is showing different. screen would output [remote detached], putty changed its windows title to screen, but actually I am not in screen. If I type screen -rd, it would output There is no screen to be detached
    – arvil
    Commented Sep 30, 2014 at 11:26
  • Ah, screen sessions are per user, unless one attaches specifically to a screen session. Is this what you want?
    – Alexander
    Commented Sep 30, 2014 at 12:01
  • yes sir. I want the non-root user to have its own screen session.
    – arvil
    Commented Sep 30, 2014 at 15:49
0

I get the same 'remote detached' message if I attempt to attach a screen session that is already the active session. You could try exiting the current shell, but before you do, please try running

screen -list

This will list all screen sessions for the logged in user as well as their status. If you see one that is attached, it may very well be your current shell.

1
  • Sir: No Sockets found in /var/run/screen/S-tgr so nothing is attached.
    – arvil
    Commented Sep 30, 2014 at 22:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .