LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2012, 06:33 PM   #16
plugwash
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0

Quote:
Originally Posted by trickykid View Post
As the owner and user of the pts, simply allow others read/write access by chmodding it..
Better to chown than chmod. If you chmod you will give all users access to the terminal. If you chown you will only give the user you chown to access.

So the procedure would go

find the name of your terminal (ps should tell you)
chown it to the user who you want to run screen as
su to the user who you want to run screen as
use screen as normal.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-21-2012, 05:26 PM   #17
hip0d
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
I didn't know about screen -d -m. I've just faced the same issue and didn't looked at this thread, so I wrote an article suggesting, few solutions. The article is thoroughfully explaining the cause of the problem and goes through the problem. So believe for newbies stumbling on the same issue it will be a good read. Check it out here - http://www.pc-freak.net/blog/how-to-...-please-check/

best,
Georgi
 
Old 12-17-2013, 12:23 PM   #18
sneg
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
From this article Solve screen error "Cannot open your terminal '/dev/pts/0' - please check"

Quote:
Do not chmod the virtual terminal device like suggested at (way too many) places around the interwebs. This gives other users read and write access to the terminal session!
that actually causes security vulnerabilty.

Also there is a good tip that helped me to solve this issue: run under newUser
Code:
script /dev/null
to own the shell, then try
Code:
screen
again
 
Old 06-17-2014, 07:52 PM   #19
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by stefaandk View Post
Yeah indeed, if I login with the user immediately through SSH it seems to work.

I had logged in as root and then su'ed to it.

Cheers
maybe a bit old, but this just solved my exact same error with screen. interesting i typically log into my server under my personal account, then su were ever i need to go. i just created a new user to use as a minecraft server user. so log in as me, su -l that user, screen... error. no love. log out, ssh in as that new user, screen works. thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su - user : /dev/pts/# Operation not permitted problem buaku Slackware 4 10-16-2005 08:08 PM
Normal users can't open /dev/pts/x wartstew Debian 2 10-03-2005 12:05 AM
Kernel config options (/dev, /dev/pts) jrdioko Slackware 5 08-22-2005 01:25 AM
What is /dev/pts, /dev/shm? mrpc_cambodia Red Hat 1 10-18-2004 03:27 AM
rxvt: can't open slave tty /dev/pts/3 kater Linux - General 2 02-26-2003 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration