Operating System - HP-UX
1837984 Members
2825 Online
110124 Solutions
New Discussion

Unable to change password.

 
SOLVED
Go to solution
Jimmy  Page
Occasional Advisor

Unable to change password.

 
9 REPLIES 9
Jimmy  Page
Occasional Advisor

Re: Unable to change password.

Oops, pressed enter too quickly.

Anyway, the problem is:
I am trying to change the password for a user from the command line but it the server is reporting that it is unable to execure the command due to lack of ptys. Is this simply because the system is fully loaded with users/processes? If so, how can I correct this. I can change the password via SAM.
thanks.
twang
Honored Contributor
Solution

Re: Unable to change password.

You are running out of ptys,
- check the number of pty/s drivers in /dev/pty and /dev/pts:
# ls *|wc -l
(default is 60)
- increase the count:
# cd /dev
# insf -n120 -dpty0
# insf -n120 -dpty1
# insf -d pts -s 120 -e

Now try to do your action again.
twang
Honored Contributor

Re: Unable to change password.

Add to above reply, you should increase npty and nstrpty. then run the above insf steps, Or you may use SAM to change the ntpy (nstrpty and nstrtel) and SAM will create the device files automatically.
Jimmy  Page
Occasional Advisor

Re: Unable to change password.

Cheers,
I'll get straight on the case.

.
aparna challagulla
Valued Contributor

Re: Unable to change password.

hi Jimmy,

The number of available ptys can be increased by increasing the device files and the kernel parameters npty and nstrpty.
u can use SAM to change the kernel parameters and the device files will be automatically created by SAM.

HTH
aparna
If you don't have time to do it right you must have time to do it over
Umapathy S
Honored Contributor

Re: Unable to change password.

Jimmy  Page
Occasional Advisor

Re: Unable to change password.

One last question:
I do indeed have only 60 ptys available. I'll probably take the SAM route as it seems easier. npty is currently set to MAXUSERS - (400) and nstrpty is set to 60. I can see that nstrpty should be increased to 120 but should I also need to increase npty too?
Also, nstrtel? what is that, I can't find that parameter anywhere.

thanks again.
Umapathy S
Honored Contributor

Re: Unable to change password.

Jimmy,
nstrtel specifies number of telnet device files the kernel can support for incoming telnet sessions. This is useful when you are using more telnet sessions that use tty drivers.
pty devices are used by dtlogin sessions as well as some other programs. So that needs to be increased a little bit. A value around 600-800 is always good.

Check this document for more info.
http://docs.hp.com/hpux/onlinedocs/TKP-90202/TKP-90202.html
HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
aparna challagulla
Valued Contributor

Re: Unable to change password.

hi Jimmy,

npty - Specifies the maximum number of pseudo-tty data structures

nstrpty - maximum number of streams based pseudo-tty data structures available

nstrtel - Number of Telnet Session Device Files

Increase the values of all the three parameters and see whether u can execute the command.

HTH
aparna
If you don't have time to do it right you must have time to do it over