Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
minecraft@283823:~$ script /dev/null ; screen -t minecraft
  Script started, file is /dev/null
minecraft@283823:~$ exit
  Script done, file is /dev/null
Cannot open your terminal '/dev/pts/0' - please check.

My interpretation is I'm staying in the script /dev/null instead of running that to set up a new pts so I can screen as a su'ed user...

I'm testing my alias that does the same thing - script /dev/null ; screen. I tried doing this in a bash script the other day and I wound up with the same error.

share|improve this question
up vote 2 down vote accepted

This I believe is due to a safety feature that is present on Debian and Ubuntu distributions, if not most other Linux distributions. As previously mentioned a work around could be to change permissions of /dev/pts/* but I would strongly advice against it as it is a security risk.

share|improve this answer

Tried changing the permission on /dev/pts/0?

 chmod 666 /dev/pts/0

and then trying what you want to do.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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