Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-22-2008, 07:02 PM   #1
Registered: Mar 2005
Posts: 49

Rep: Reputation: 15
Cool can't run screen, no more PTYs?

Hello, I'm running a vps, i dont know if that would be the cause of this but, when i try to create a screen as a unpriv user I get the error "no more PTYs", "Can't find a PTY". Ive ls -la the /dev/pts dir and this is what I see.

assaultcube@me:/dev/pts$ ls -la
total 0
drwxr-xr-x 2 root root 0 Sep 22 00:24 .
drwxr-xr-x 6 root root 2120 Sep 22 00:24 ..
crw--w---- 1 assaultcube tty 136, 0 Sep 22 18:56 0
crw--w---- 1 root tty 136, 1 Sep 22 18:28 1

how would I create more, or fix this. Im not sure what the solution to my problem would be? Oh and I can create a screen as root just fine, just not when under the assaultcube user. many thanks.
Old 09-22-2008, 07:37 PM   #2
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
also looking at /etc/fstab i see if this helps?

none /dev/pts devpts rw 0 0
Old 09-22-2008, 07:40 PM   #3
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Check out this thread on LQ:
Old 09-22-2008, 07:49 PM   #4
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
yea I checked that out, they mentioned checking the perms on /dev/pty*, but when i

root@me:/dev# ls -l /dev/pty*
ls: cannot access /dev/pty*: No such file or directory


Apparently it's looking to allocate ptys. Most likely it's a question of permissions on the /dev/pty* devices. Most likely, they should be 666, I believe.
maybe i should try?

chmod 666 /dev/ptmx
chmod 666 /dev/null
Old 09-22-2008, 08:31 PM   #5
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
chmod 666 /dev/ptmx

seemed to have fixed it, i know nothing about this. will this cause a security threat in the future?


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
screen error "no more PTYs" darcon3k Linux - Software 10 04-19-2011 05:30 PM
redhat linux screen error - no more PTYs dk245 Linux - Software 0 06-07-2006 09:19 PM
More PTYs? How? microsoft/linux Linux From Scratch 4 05-16-2006 09:19 PM
not enough ptys carboncopy Slackware 2 03-24-2005 08:51 AM
How to turn off screen blanking screen saver in run level 3? Arodef Linux - Software 1 01-04-2005 01:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

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