Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Oct 142012

Fix the error "Cannot open your terminal '/dev/pts/x'" when using screen during su


When you first "su" into another user account and then invoke the screen command, you will get the error like "Cannot open your terminal '/dev/pts/x'"

To fix this, simply enter..

# script /dev/null

That's all you need!

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>