{"id":129,"date":"2012-04-16T19:10:50","date_gmt":"2012-04-16T17:10:50","guid":{"rendered":"http:\/\/jcoder.me\/blog\/?p=129"},"modified":"2012-04-16T19:10:50","modified_gmt":"2012-04-16T17:10:50","slug":"screen-for-normal-linux-user-not-working","status":"publish","type":"post","link":"https:\/\/jcoder.me\/blog\/2012\/04\/16\/screen-for-normal-linux-user-not-working\/","title":{"rendered":"screen for normal linux user not working, but&#8230;"},"content":{"rendered":"<p>While playing with a development server at work, we just came across an error message like this:<\/p>\n<pre>Cannot open your terminal '\/dev\/pts\/0' - please check.<\/pre>\n<p>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:<\/p>\n<ol>\n<li>open screen as <code>root<\/code> and then <code>sudo<\/code> to user<\/li>\n<li>make <code>\/dev\/pts\/0<\/code> writable for the user<\/li>\n<\/ol>\n<p>I didn&#8217;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&#8217;s session, <code>\/dev\/pts\/0<\/code> seemed to be gone, and the next try failed again, so it&#8217;s not a permanent solution.<\/p>\n<p><strong>The solution <\/strong><em>(that worked for me)<\/em><strong>:<\/strong><\/p>\n<p>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&#8217;s no problem to open a <code>screen<\/code>.<\/p>\n<p>In our previous tries we had logged in as <code>root<\/code> and then <code>sudo<\/code>ed to the user, which caused this problem. Maybe I&#8217;ll investigate some alternatives or eventually more in-depth information about why this works this way, but for now I&#8217;m quite happy that we have a working solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While playing with a development server at work, we just came across an error message like this: Cannot open your terminal &#8216;\/dev\/pts\/0&#8217; &#8211; please check. So, there seemed to be rights-related problem, and searching the web brings up quite a &hellip; <a href=\"https:\/\/jcoder.me\/blog\/2012\/04\/16\/screen-for-normal-linux-user-not-working\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[25,27,26],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-system","tag-linux","tag-screen","tag-shell"],"_links":{"self":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":3,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}