Operating System - HP-UX
1833802 Members
2120 Online
110063 Solutions
New Discussion

Problem with telnet (or me)

 
Harinath N
Frequent Advisor

Problem with telnet (or me)

Hi,

Iam not able to open more than four telnet sessions to one of my
HP server running HP-UX 10.20. In syslog file, the msg is as


Aug 1 09:41:09 infhp007 telnetd[22017]: Cannot allocate pty


The npty parameter is set to 328. While giving insf -e, the error
is as follows

insf: Installing special files for pseudo driver ptym
insf: group tty lookup failed: Invalid argument
insf: Installing special files for pseudo driver ptys
insf: group tty lookup failed: Bad file number


I just stopped the /usr/sbin/ptydaemon and when i tried to start
it now, its not getting started.

Can anyone help me on this regard?.

Thanks and Regards,
N.Harinath
6 REPLIES 6
Printaporn_1
Esteemed Contributor

Re: Problem with telnet (or me)

please try with
#insf -n

enjoy any little thing in my life
Harinath N
Frequent Advisor

Re: Problem with telnet (or me)

Hi,

Checked out with insf -n 60, but same thing continues.

Regards,
N.Harinath
Frank Li
Trusted Contributor

Re: Problem with telnet (or me)

Do you have the "tty" line in your /etc/group file ?

If not ,adding the following to the file :

tty::10:

and try "insf" again.
Hi Friend
Harinath N
Frequent Advisor

Re: Problem with telnet (or me)

Hi Frank,

Tried with tty entry in group file, but still the problem continues.

Regards,
N.Harinath
maafa
Advisor

Re: Problem with telnet (or me)

what about nstrtel, nstrpty, npty kernel parameters in your box (60 is the default value).
Bob_Vance
Esteemed Contributor

Re: Problem with telnet (or me)

Has it been working?
If so, have you tried rebooting the system?
The error message definitely means that "tty" does not exist in /etc/group, although I'm not sure what damage that really would do -- the files seem to get created with group 0 in that case.

The general procedure to change the pseudo configs is as follows for 10.20 (however the default is 60, so that it's unlikely to have been changed in the kernel):

------
two types of pseudo ttys:
1. "regular"
2. streams-based
regular are used by telnet ;
streams-based are used by rlogin (and other r-utils)

To create regular:
1. bump 'npty' in kernel config (and reboot)
2. cd /dev
insf -d ptym -n N
(this creates /dev/ptyp0-N
and /dev/ptym/ptyp0-N
)
insf -d ptys -n N
(this creates /dev/ttyp0-N
and /dev/pty/ttyp0-N
)
To create streams-based:
1. bump 'nstrpty' in kernel config (and reboot)
2. cd /dev
insf -d ptm
(this creates the one file /dev/ptymx
)
insf -d pts -n N
(this creates /dev/pts/0-N
)
-----

What do the current files in /dev look like:
/dev/ptyp0-N
/dev/ptym/ptyp0-N
/dev/ttyp0-N
/dev/pty/ttyp0-N
"The lyf so short, the craft so long to lerne." - Chaucer