title: screen Cannot open your terminal '/dev/pts/0' - please check
body: <p>I want to start a program in a screen as the user "XYZ" with a script.
  This is my script in short form:</p>
  
  <pre><code># replace &lt;newuser&gt; with the user you wish to run teamspeak 3 with.
  USER="teamspeak"
  # Do not change this path
  PATH=/bin:/usr/bin:/sbin:/usr/sbin
  # The path to the teamspeak 3 server/scripts . example = /home/teamspeak3/teamspeak3-server
  DIR=/home/teamspeak/voiceserver/teamspeak3
  DAEMON=$DIR/ts3server_startscript.sh
  # Change all PARAMS to your needs. I required the ini so teamspeak used MySQL
  PARAMS="inifile=ts3server.ini"
  #Name = The screen will be named from this.
  NAME=teamspeak3
  DESC="Teamspeak Server 3"
  
  
  case "$1" in
  start)
  echo "Starting $DESC"
  script -q -c "su $USER -l -c \"screen -m -d -S $NAME $DAEMON start\"" /dev/null
  ;;
  stop)
  su $USER -l -c "screen -S $NAME  -X quit "
      echo " ... done. $DESC Stopped."
  ;;
  restart)
  su $USER -l -c "screen -S $NAME  -X quit "
      echo " Closed Process, Restarting"
  script -q -c "su $USER -l -c \"screen -m -d -S $NAME $DAEMON start\"" /dev/null
  echo " ... done. $DESC Restarted"
  ;;
  status)
  # Check whether there's a "Team Speak 3" process
  ps aux | grep -v grep | grep ts3server_ &gt; /dev/null
  CHECK=$?
  [ $CHECK -eq 0 ] &amp;&amp; echo "$DESC is UP" || echo "$DESC is DOWN"
  ;;
  *)
  echo "Usage: $0 {start|stop|status|restart}"
  exit 1
  ;;
  esac
  exit 0
  </code></pre>
  
  <p>I want connect in the screen, but I got this.</p>
  
  <pre><code>Cannot open your terminal '/dev/pts/0' - please check.
  </code></pre>
  
  <p>Did I do something wrong?</p>