6.0.0-beta1
7/8/25

[#10686] passwd can't find/use the expect binary
Summary passwd can't find/use the expect binary
Queue Passwd
Queue Version 4.0-ALPHA1
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester bugs.horde.org (at) sjau (dot) ch
Created 10/27/2011 (5003 days ago)
Due
Updated 10/31/2011 (4999 days ago)
Assigned 10/28/2011 (5002 days ago)
Resolved 10/28/2011 (5002 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/31/2011 05:54:09 PM Jan Schneider Comment #6 Reply to this comment
It's already closed. But before opening a new, check first if this 
isn't caused by open_basedir too.
10/28/2011 03:29:09 PM bugs (dot) horde (dot) org (at) sjau (dot) ch Comment #5 Reply to this comment
So you can split it into another bug report or shall I open one?
But that's a completely different issue.
10/28/2011 03:09:14 PM Jan Schneider Comment #4
State ⇒ Not A Bug
Reply to this comment
But that's a completely different issue.
10/28/2011 01:48:32 PM bugs (dot) horde (dot) org (at) sjau (dot) ch Comment #3 Reply to this comment
Ok, it's weird because ImageMagick'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
"expect {
     -re $fingerprint_string {sleep .5
                              send yes\r
                              exp_continue}
     -re $password_st..."
     invoked from within
"if {![string match $login "sudo"]} {
   # log in
   expect {
     -re $fingerprint_string {sleep .5
                              send yes\r
              ..."
     (file "/var/www/horde/passwd/lib/../scripts/passwd-expect" line 185)

10/28/2011 01:32:21 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
This doesn't have anything to do with Horde, but with your PHP setup. 
You probably have safe_mode or open_basedir restrictions applied.
10/27/2011 07:04:38 PM bugs (dot) horde (dot) org (at) sjau (dot) ch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ passwd can't find/use the expect binary
Queue ⇒ Passwd
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
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.

--> it can't find or execute the expect binary.


"which expect" returns:  /usr/bin/expect
"ls -al /usr/bin/expect" returns: -rwxr-xr-x 1 root root 6.8K Oct 27   
2010 /usr/bin/expect

Apache user also has a shell:
"cat /etc/passwd | grep www-data":  www-data:x:33:33:www-data:/var/www:/bin/sh

Saved Queries