Operating System - HP-UX
1820733 Members
3172 Online
109627 Solutions
New Discussion юеВ

Re: Unable to get pty error while opening terminal in CDE

 
vijay_hp_rocks
Occasional Advisor

Unable to get pty error while opening terminal in CDE

While opening terminal session from CDE for non-root users I get below error
Unable to get pty

*** STDERR(1): (/usr/dt/bin/dtexec) /usr/dt/bin/dtterm: PID 20991: Thu May 21 09:54:10 2009
ptsname: Permission denied
Warning:
Name: dtTerm
Class: DtTerm
unable to get pty


*** [187]
11 REPLIES 11
Suraj K Sankari
Honored Contributor

Re: Unable to get pty error while opening terminal in CDE

Hi,

What is the npty value? and how many users are login into the server?

increas the npty value then check


Suraj
vijay_hp_rocks
Occasional Advisor

Re: Unable to get pty error while opening terminal in CDE

Thanks for reply ...

it is large enough

kctune |grep pty
npty 4096 4096
nstrpty 4096 4096

I tried runing insf -e
Itv was running fine before reboot. Issue started after reboot. ssh telnet is fine for non-root users.

Regards,

Vijay
Suraj K Sankari
Honored Contributor

Re: Unable to get pty error while opening terminal in CDE

Hi,

There are no dtterm device files. They must be recreated.
#kctune |grep pty
npty 4096 4096
nstrpty 4096 4096

#kctune | grep nstrtel

# insf -d pts -s 4096 -e #< where 4096 is the value of nstrpty >
# insf -d pty -n 4096 -e #< where 4096 is the value of npty >

# insf -d tels -s ├в e #< where the value of nstrt

Suraj
vijay_hp_rocks
Occasional Advisor

Re: Unable to get pty error while opening terminal in CDE

done but no luck ...

insf -d pts -s 4096 -e
insf: Installing special files for pseudo driver pts
kctune | grep nstrtel
nstrtel 4096 4096
insf -d pty -n 4096 -e
insf: Installing special files for pseudo driver ptym
insf: Installing special files for pseudo driver ptys
insf -d tels -s 4096 -e
insf: Installing special files for pseudo driver tels

---------------------------------------------
bounced dtlogin deamons .. for root is working very fine do I missing any file permissions ..

Verified all /usr/dt , /etc/X11 , dev/pty ,/dev/ptm file with workingsystem and they looks fine..

don't know what is issue
Suraj K Sankari
Honored Contributor

Re: Unable to get pty error while opening terminal in CDE

Hi,

What is the error messages your are getting, is there any error at syslog.log ?

Post the output or this below command
# ll /dev/pts/[0-9] /dev/pts/[0-9][0-9]

Suraj
Nido
Trusted Contributor

Re: Unable to get pty error while opening terminal in CDE

Hi Vijay,

I assume you don't have problem accessing telnet sessions with the said non-root users and they can access their home directories.

Please check the .dtprofile and .profile of the non-root users. Try copying the standard .dtprofile and .profile from /usr/newconfig/...

Let me know the result.

Thanks,
" Let Villagers Be Happy!! "
vijay_hp_rocks
Occasional Advisor

Re: Unable to get pty error while opening terminal in CDE

I have as per your suggestions ..
I moved .profile and .dtprofile from non-root user to to some other location and copied /usr/newconfig/.profile to user home.
I did'nt fine .dtprofile there but it got created after login..

But same issue.
vijay_hp_rocks
Occasional Advisor

Re: Unable to get pty error while opening terminal in CDE

Hi Suraj,

Please find the o/p of

ll /dev/pts/[0-9] /dev/pts/[0-9][0-9]as attachment
Suraj K Sankari
Honored Contributor

Re: Unable to get pty error while opening terminal in CDE

Hi,

How many users are currently loggin into the system ?

Please post this output
who -q
who -u
and what is the error message now you are getting while login as a normal user ?

Suraj
vijay_hp_rocks
Occasional Advisor

Re: Unable to get pty error while opening terminal in CDE

Hi,

Currently 27 users are logged in to the system/ telnet ssh is not as issue.

but through xmanager I user able to login but while opening teminal, get's error

! Unable to get pty .. user is not able to work on terminal, prompt doesn;t appear.

Everything is working for root ..


vijay_hp_rocks
Occasional Advisor

Re: Unable to get pty error while opening terminal in CDE

Hi,

the issue has been resolved .. It was permission issue only. I was mission to check the folder permissons every time after running insf -e
.
if error is permission denied then it really mean.

No othre issue only look for /dev permissions .

Thanks a lot ... Suraj ganesh for your time.

Regards,
Vijay