SUMMARY - The system has no more ptys

From: <choonpheng_at_tdb.gov.sg>
Date: Tue, 29 Dec 1998 19:55:05 +0800

Orignial Question

While running an expect program by the user, the user is faced iwth the
following error:

>>spawn ftp cactus
The system has no more ptys. Ask your system administrator to create more.
    while executing
"spawn ftp cactus"
    (file "fileinit.ksh" line 12)

However, if the same program is run by root, the error did not appear.

The question is
1) Why am I getting the error message by the users and not by root.
2) How to increase the ptys.

-------------------------------------------------------------------------
Summary

Thanks to the following who responded
 Drew Vayro <drew.vayro_at_nl.origin-it.com>
 Kjell Andresen <kjell.andresen_at_usit.uio.no>
 Sajan <sajan_u_at_hotmail.com>

1) Why am I getting the error message by the users and not by root.
>>>Root-acess is no ordinary user and is never denied due to too few
user-licenses either.

2) How to increase the ptys.
>>>cd dev
>>>./MAKEDEV pty1
>>>./MAKEDEV PTY_1 [Creates pty0 to pty22]

Further piece of advice was to increase the maxusers in the config file
and reconfigure the kernel.

I tried increasing the pty but it does not solve the problem.
The max_users and also the max_process_per_users were both at 1024.

I suspected that the problem might not be due to the fact that there
are not enough ptys, but instead could be due to the fact that the said system
did crash once; the recovery process may not be perfect at that stage.

We will be trying to restore back the devices or to recreate all the devices
again.

Thanks again.
Received on Tue Dec 29 1998 - 12:10:58 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT