Screen is used to run interactive programs in the backgroud while we can logout from the server. We can also re-attach to the existing screen session to check the progress of the running programs.
Sometimes, server admin need to run commands under a different user so they “su” to another user and use screen.
root@server [~]# su - user1
user1@server [~]# screen
Cannot open your terminal '/dev/pts/0' - please check.
As you can see, after changing the identity to ‘user1′, you cannot run screen and instead it exits with the error message
Cannot open [...]
↧