1834809 Members
2640 Online
110070 Solutions
New Discussion

unable to get ptty

 
Rob Wallner
Advisor

unable to get ptty

While trying to do a xterm (Exceed) in to our head server.

I Tried: Insf -e


Permisions

-r-sr-xr-x 1 root bin 294912 Nov 14 2000 /usr/bin/X11/xterm
-r-sr-sr-x 1 root sys 299008 Nov 14 2000 /usr/bin/X11/hpterm
-r-sr-xr-x 1 root bin 65536 Nov 14 2000 /usr/dt/bin/dtterm
-r-sr-sr-x 1 root bin 212992 Nov 14 2000 /usr/lbin/chgpt
-r-sr-xr-x 1 root bin 385024 Nov 14 2000 /usr/contrib/bin/X11/xterm

$HOME/.dt/errorlog:
grantpt: Not a typewriter
Warning:
Name: dtTerm
Class: DtTerm
unable to get pty
5 REPLIES 5
Mel Burslan
Honored Contributor

Re: unable to get ptty

together with your error message being a little obscure, you may be running out of pty allocations per your kernel parameter settings.

could you please execute this command from an already connected terminal or from server console, as root:

kmtune | grep pty

and post the output here ?
________________________________
UNIX because I majored in cryptology...
Rob Wallner
Advisor

Re: unable to get ptty

While trying to do a xterm (Exceed) in to our head server. i get a pop up that says

unable to get pty
Here is the output you requested.

npty 200 - 200
nstrpty 200 - 200
Mel Burslan
Honored Contributor

Re: unable to get ptty

one more question then; actually three I suppose, technically. What is the output of these commands say

cd /dev ; ll -d pty*|wc -l

cd /dev/pty; ll -d pty*|wc -l

cd /dev/ptym; ll -d pty*|wc -l


________________________________
UNIX because I majored in cryptology...
Prashanth.D.S
Honored Contributor

Re: unable to get ptty

HI,

It appears that dtexec is trying to execute a dtterm and the command is failing with a "Not a typewriter" error for grantpt.

grantpt relies on the system command, /usr/lbin/chgpt; therefore, you need to check the permission and ownership of this chgpt file.

NOTE: The permission and ownership should be:

-r-sr-sr-x 1 root bin 110592 Jun 10 1996 /usr/lbin/chgpt

Setting the correct ownership and permission on this file should allow your eXceed session to properly start a Dtterm window on your PC
Rob Wallner
Advisor

Re: unable to get ptty

Well, After a reboot of the servers, everyone can log in now.

Thanks for your help.