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?

  • 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 ?? – Martin von Wittich Sep 30 '14 at 9:43
  • @MartinvonWittich I type screen without params, I got [remote detached], key combinations only work on root. – arvil Oct 2 '14 at 18:37

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

  • 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 Sep 30 '14 at 11:26
  • Ah, screen sessions are per user, unless one attaches specifically to a screen session. Is this what you want? – Alexander Sep 30 '14 at 12:01
  • yes sir. I want the non-root user to have its own screen session. – arvil Sep 30 '14 at 15:49

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.