<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>passwd can&#039;t find/use the expect binary</title> 
  <pubDate>Fri, 10 Apr 2026 09:04:35 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10686</link> 
  <atom:link rel="self" type="application/rss+xml" title="passwd can&#039;t find/use the expect binary" href="https://bugs.horde.org/ticket/10686/rss" /> 
  <description>passwd can&#039;t find/use the expect binary</description> 
 
   
   
  <item> 
   <title>I just added passwd, enabled expect because I need to change</title> 
   <description>I just added passwd, enabled expect because I need to change the password of system users.

When I try to alter it, horde brings this error:

Fehler beim Ändern des Passworts für Expect Script: /usr/bin/expect existiert nicht oder ist nicht ausführbar.

--&gt; it can&#039;t find or execute the expect binary.


&quot;which expect&quot; returns:  /usr/bin/expect
&quot;ls -al /usr/bin/expect&quot; returns: -rwxr-xr-x 1 root root 6.8K Oct 27  2010 /usr/bin/expect

Apache user also has a shell:
&quot;cat /etc/passwd | grep www-data&quot;:  www-data:x:33:33:www-data:/var/www:/bin/sh</description> 
   <pubDate>Thu, 27 Oct 2011 19:04:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10686#t68401</link> 
  </item> 
   
  <item> 
   <title>This doesn&#039;t have anything to do with Horde, but with your P</title> 
   <description>This doesn&#039;t have anything to do with Horde, but with your PHP setup. You probably have safe_mode or open_basedir restrictions applied.</description> 
   <pubDate>Fri, 28 Oct 2011 13:32:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10686#t68410</link> 
  </item> 
   
  <item> 
   <title>Ok, it&#039;s weird because ImageMagick&#039;s convert is also in /usr</title> 
   <description>Ok, it&#039;s weird because ImageMagick&#039;s convert is also in /usr/bin and ansel works just fine with using ImageMagick... anyway, I added /usr/bin now to the open_basedir path and the script run in horde without issues.

However the expect.log in /tmp shows this:


expect: spawn id exp7 not open
    while executing
&quot;expect {
    -re $fingerprint_string {sleep .5
                             send yes\r
                             exp_continue}
    -re $password_st...&quot;
    invoked from within
&quot;if {![string match $login &quot;sudo&quot;]} {
  # log in
  expect {
    -re $fingerprint_string {sleep .5
                             send yes\r
             ...&quot;
    (file &quot;/var/www/horde/passwd/lib/../scripts/passwd-expect&quot; line 185)
</description> 
   <pubDate>Fri, 28 Oct 2011 13:48:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10686#t68411</link> 
  </item> 
   
  <item> 
   <title>But that&#039;s a completely different issue.</title> 
   <description>But that&#039;s a completely different issue.</description> 
   <pubDate>Fri, 28 Oct 2011 15:09:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10686#t68413</link> 
  </item> 
   
  <item> 
   <title>So you can split it into another bug report or shall I open </title> 
   <description>So you can split it into another bug report or shall I open one?

&gt; But that&#039;s a completely different issue.
</description> 
   <pubDate>Fri, 28 Oct 2011 15:29:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10686#t68414</link> 
  </item> 
   
  <item> 
   <title>It&#039;s already closed. But before opening a new, check first i</title> 
   <description>It&#039;s already closed. But before opening a new, check first if this isn&#039;t caused by open_basedir too.</description> 
   <pubDate>Mon, 31 Oct 2011 17:54:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10686#t68460</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
