Read more

Solve screen error "Cannot open your terminal '/dev/pts/0' - please check"

Arne Hartherz
October 24, 2011Software engineer at makandra GmbH

When using the screen tool you may be unable to start a screen session but instead encounter an error:

Cannot open your terminal '/dev/pts/0' - please check.
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show snapshot

This is because another user (you) initiated the current terminal -- you probably did a sudo su into the user you are now trying to run screen as, right?

There are two ways to resolve this:

Important: Do not chmod the virtual terminal device like suggested at (way too many) places around the interwebs. This gives other users read and write access to the terminal session!

Maybe you even want a different terminal multiplexer. You might want to take a look at tmux Show snapshot .

Posted by Arne Hartherz to makandra dev (2011-10-24 22:49)