Failed to allocate pty!

From: Steve Nelson (sanelson_at_gmail.com)
Date: 07/27/04

  • Next message: Rachid BOUKHARI: "Patch update"
    Date: Tue, 27 Jul 2004 17:04:11 +0100
    To: sunmanagers@sunmanagers.org
    
    

    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


  • Next message: Rachid BOUKHARI: "Patch update"