[sork] Expect script error: "no more ptys"?

Brett Charbeneau brett at wrl.org
Thu Jul 15 08:25:31 PDT 2004


	Thanks for the response, Wouter!
	Drat, I tried issuing this chmod command and unfortunately it 
didn't do the trick - same error. Here are some of the permissions on the 
other 
pty-type devices in /dev:

crw-rw-rw-    1 root     tty        2, 176 Jan 30  2003 ptya0
crw-rw-rw-    1 root     tty        2, 177 Jan 30  2003 ptya1
crw-rw-rw-    1 root     tty        2, 178 Jan 30  2003 ptya2
crw-rw-rw-    1 root     tty        2, 179 Jan 30  2003 ptya3
crw-rw-rw-    1 root     tty        2, 180 Jan 30  2003 ptya4

	Here's the contents of my backend.php file:

$backends['expect'] = array(
    'name' => 'Mail Server',
    'preferred' => '',
    'password policy' => array(
    'minLength' => 5,
    'maxLength' => 16,
    'minUpper' => 1,
    'minLower' => 1,
),
    'driver' => 'expect',
    'params' => array(
        'program' => '/usr/bin/expect',
        'script' => 'scripts/passwd_expect',
        'params' => '-ssh -vvv -host mail.server.org -output /tmp/passwd.log'
    )
);
 

	I hope this provides some additional clue!


Brett




On Thu, 15 Jul 2004, Wouter de Jong wrote:

WdJ> On Wed, Jul 14, 2004 at 03:09:47PM -0400, Brett Charbeneau wrote:
WdJ> > Greetings,
WdJ> 
WdJ> Howdy,
WdJ> 
WdJ> <..>
WdJ> 
WdJ> > 	I had the expect script part of the password module working at one 
WdJ> > point, but it's giving me the error below in the passwd.log file whenever 
WdJ> > I attempt to change my password - although it reports back that the change 
WdJ> > was successful.
WdJ> 
WdJ> <.. The system has no more ptys ..>
WdJ> 
WdJ> I had this issue once too, and it was very simple to fix :)
WdJ> 
WdJ> > 	Any clues anyone? I should would be grateful to resolve this. Many 
WdJ> > thanks in advance!
WdJ> 
WdJ> Try this:  chmod 0666 /dev/ptmx
WdJ> 
WdJ> 
WdJ> Greetings,
WdJ> 
WdJ> 

-- 

Brett Charbeneau, Network Administrator         Tel: 757-259-7750
Williamsburg Regional Library                   FAX: 757-259-7798
7770 Croaker Road                               brett at wrl.org
Williamsburg, VA 23188-7064                     http://www.wrl.org




More information about the sork mailing list