screen / tmux problem - permission denied!
  • Hi,

    I've been using a VPS to host a web application that uses several support applications that I need to run in the background. To do this, I normally use screen and/or tmux.

    However, when I logged in to this new VPS and typed 'screen', it seemed to start and then terminated. "No matter," I thought, "I'll use tmux because I am a clever user!" Alas, tmux also failed, but with a more helpful error: "create session failed: : Permission denied".

    Now, I've been working around the problem by using sudo tmux, but it's really not a safe alternative. If someone knows why I can't do this, could they please help?

    Thanks so much, everyone!
  • I usually use screen.
    How do you leave the screen session? Do you press CTRL+A, CTR+D?
    Do you use screen -r to restore the session.

    If you can't restore your session do you run screen -ls to see if session is still there?
  • And btw getting permission denied may be caused by the fact that you're trying to restore the session from another user than the one that created it.
  • waverider: I am completely unable to *start* the screen session, so I never have the opportunity to leave it or restore it. Also, I get "permission denied" without restoring a session--just `tmux` gives me that error.

    screen -ls says there are no sockets found in /var/run/screen/S-, which is to be expected since I haven't been able to start screen, ever.
  • Please make sure you have enough permissions on the user you are trying to use screen with.

    Also, please try running chmod 666 /dev/ptmx and see if that helps.
  • SeerKan: What permissions would I need? And no, that command did not help.
  • Problem persists today, and it's kind of strange. Any more thoughts? This is the first time I've ever had any problems with screen, so I have to wonder what in the setup caused this bug.
  • Can you copy the command you're running and the exact error you're getting?
  • waverider: `screen` results in `[screen is terminating]` after a brief flicker on the screen. `tmux` results in a displacement of my cursor and the message `create session failed: : Permission denied`.
  • Hi,

    Please submit a ticket and I will look over it.