Failed to allocate pty!

From: Steve Nelson (sanelson@gmail.com)
Date: Tue Jul 27 2004 - 12:04:11 EDT


Hi Managers,

I have a problem with a Solaris 7 box.

Attempts to ssh to the box fail, returning:

Failed to allocate pty!

I got onto the console and restarted sshd (which is F-Secure-SSH-2.1.0 dss)

This fixed things for a while...

bash-2.03# echo "pt_cnt/D" | adb -k
physmem 7cf13
pt_cnt:
pt_cnt: 48

The following script shows:

#!/bin/sh

PTYS_IN_USE=0
TOTAL_PTYS=`ls /dev/pts | wc -l | sed 's/ //g`
for PTY in /dev/pts/*
do
   [ -n "`fuser $PTY 2>/dev/null`" ] && PTYS_IN_USE=`expr $PTYS_IN_USE + 1`
done
echo "PTYs in use: $PTYS_IN_USE"
echo " Total PTYs: $TOTAL_PTYS"

How can I see these ptys?

I did ps -ef | grep pty/* and saw less than 48 - do I have to do a
ptree on each process and kill them accordingly?

I can't really reboot this machine yet, but no users can gain access...

Help!

Steve Nelson
UNIX Sysadmin
MCI Enterprise Hosting
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:09 EDT