screen for normal linux user not working, but…
While playing with a development server at work, we just came across an error message like this:
Cannot open your terminal '/dev/pts/0' - please check.
So, there seemed to be rights-related problem, and searching the web brings up quite a lot of forum entries about this topic, with maily this two solutions:
- open screen as
root
and thensudo
to user - make
/dev/pts/0
writable for the user
I didn’t want to try the first one, because that might allow the user to fall back to root, so I tried the second one. At first it worked, but when I completely closed the user’s session, /dev/pts/0
seemed to be gone, and the next try failed again, so it’s not a permanent solution.
The solution (that worked for me):
But finally I came across another solution that worked like a charme: you just need to SSH onto the machine directly with the desired user, and then it’s no problem to open a screen
.
In our previous tries we had logged in as root
and then sudo
ed to the user, which caused this problem. Maybe I’ll investigate some alternatives or eventually more in-depth information about why this works this way, but for now I’m quite happy that we have a working solution.
Search
Categories
Tags
Arduino ATtiny blinking C# Code-Download Coding Converter email FEZ first steps GPIO Hardware ID12 James Java JSP jspinfo LCD LED Lights Linux microcontroller Netduino NETMF Network NewBase60 opensource Panda II PWM Python Raspberry Pi RFID RGB screen server shell slow motion Traffic Light video WS2812Blogroll
Archives
- December 2014 (1)
- January 2014 (1)
- March 2013 (1)
- December 2012 (1)
- October 2012 (2)
- September 2012 (3)
- June 2012 (3)
- May 2012 (1)
- April 2012 (3)
- March 2012 (1)
- February 2012 (1)
- December 2011 (1)
- November 2011 (1)
- October 2011 (1)
- September 2011 (1)
- August 2011 (2)
- July 2011 (3)
- June 2011 (3)