Sunday, April 28, 2024
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 25961  / 2 Years ago, wed, april 6, 2022, 5:15:36

To learn some server management I just created a new Ubuntu 12.04 server. Since I only had a root account I created a new user with adduser kramer65. I then switched to that user using su kramer65. I now want to run screen, so I typed screen and hit enter, after which I'm presented with this line:



Cannot open your terminal '/dev/pts/1' - please check.


And here I'm lost. Why doesn't it open screen, and what should I do with the very helpful tip "please check"?



All tips are welcome!


More From » command-line

 Answers
5

Turns out the problem was that I ssh'ed into the machine as root, then changed to the user kramer65 with su kramer65 and then tried to run screen, where screen can only be run by the user that logs in using ssh. So after I added kramer65 to the sudoers file with usermod -aG sudo kramer65 I could ssh into the machine as kramer65 and run screen with a big smile.


[#26873] Thursday, April 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
smelrop

Total Points: 263
Total Questions: 122
Total Answers: 108

Location: Saudi Arabia
Member since Thu, Jan 28, 2021
3 Years ago
;