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!