Created
March 27, 2017 15:00
-
-
Save xorenio/bd2960c6bf207561d59b1e45b06468c9 to your computer and use it in GitHub Desktop.
Fix for screen issue when changing user on linux term
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## I need a way of checking if screen issue | |
# To re-create the issue simply su a user | |
### | |
# root@local:~# sudo su john | |
# john@local:/root$ screen -l | |
#ISSUE-> Cannot open your terminal '/dev/pts/0' - please check. | |
echo "Go home your drunk" | |
cd $HOME | |
echo "Screen fix" | |
script /dev/null | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment