Operating System - HP-UX
1748195 Members
4341 Online
108759 Solutions
New Discussion юеВ

Re: can not get pty error on XDMCP connection

 
SOLVED
Go to solution

can not get pty error on XDMCP connection

Hi all,

First time I see this...

We log in through a direct XDMCP connection. When we try to open a terminal from the panel, we get the error "Cannot get pty"

No errors on syslog. We get it no matter which user, root, oracle, etc, etc tries it.

Glance shows only 1 or 2 pty used (npty=60).

Only 3 users exist on the system. Nobody else is using it.

The directory listings show almost all tty (/dev/pty, /dev/*ty) owner is bin:tty.

We rebooted but still the same...

The only thing done to the system since yesterday afternoon, was a find to erase all files of user oracle....

The OS is 11i on a L1000 machine...

any ideas???
thanx!!!!
9 REPLIES 9
LucianoCarvalho
Respected Contributor
Solution

Re: can not get pty error on XDMCP connection

hi!

try to recreate all files with the command insf.
/sbin/insf -d ptys -n 60 -e -v
/sbin/insf -d ptym -n 60 -e -v
/sbin/insf -d pts -s 60 -e -v
/sbin/insf -d ptm -e



T G Manikandan
Honored Contributor

Re: can not get pty error on XDMCP connection

Try doing a

#insf -e

REvert
T G Manikandan
Honored Contributor

Re: can not get pty error on XDMCP connection

Can you check
$HOME/.dt/errorlog

Revert with the log messages
Alex Glennie
Honored Contributor

Re: can not get pty error on XDMCP connection

check the perms and ownership of /usr/lbin/chgpt .... should be :

-r-sr-sr-x root bin known to cause problems ....

Re: can not get pty error on XDMCP connection

That was fast!
------------------------------------------
$HOME/.dt/errorlog:

*** STDERR(1): (/usr/dt/bin/dtexec) /usr/dt/bin/dtterm: PID 29164: Thu Nov 20 10
:53:35 2003
grantpt: Not a typewriter
Warning:
Name: dtTerm
Class: DtTerm
unable to get pty


*** [186]

--------------------------------------------

# ll /usr/lbin/chgpt
-r-sr-sr-x 1 root bin 212992 Nov 14 2000 /usr/lbin/chgpt

-------------------------------------------

I will not try the insf command yet, as an installation takes place at the moment...

Oh, I forgot to mention. Normal telnet (windows, reflection, hyperterm, etc) works fine. Xterminal (ReflectionX, etc) also works... Only on XDMCP we have this problem...

.
.
.
T G Manikandan
Honored Contributor

Re: can not get pty error on XDMCP connection

Insf -e
should be the first choice

do check hte permissions for

/usr/bin/X11/xterm -r-sr-xr-x root:bin
/usr/bin/X11/hpterm -r-sr-sr-x root:sys
/usr/dt/bin/dtterm -r-sr-xr-x root:bin
/usr/contrib/bin/X11/xterm -r-sr-xr-x root:bin
Alex Glennie
Honored Contributor

Re: can not get pty error on XDMCP connection

tried my suggestions yet ? the error in the error log fits the bill ...

Re: can not get pty error on XDMCP connection


Thanks all for the suggestions...

insf did it...

thank you again...
Michael Deely
Advisor

Re: can not get pty error on XDMCP connection

I was having a similar problem but what fixed it for me was to set SUID bit for:

/usr/dt/bin/dtterm
/usr/lbin/chgpt
/usr/contrib/bin/X11/xterm

-Not sure which one did it but none was set as it should have been.