6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/22/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#40] smbpasswd on Solaris 8
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. .___.. ,._. [__ | | \./ | [___|___ | | _|_
Comment
> I could not get smbpasswd password changing to work from horde. I > added some debugging lines and found the problem: > > > > Line 48 of passwd-2.2/lib/Driver/smbpasswd.php reads... > > > > $cmd = $this->_params['program'] . " -r " . $this->_params['host'] . > > " -s -U \"$user\" &> $tmpfile" > > > > When I changed it to... > > $cmd = $this->_params['program'] . " -r " . $this->_params['host'] . > > " -s -U \"$user\" > $tmpfile 2>&1" > > > > ...I was able to change my smb password. > > > > The problem is that the version of /bin/sh that comes with Solaris 8 > does not support "&>" I have tested this outside of horde with a > simple script: > > > > #!/bin/sh > > echo "hello world" &> /tmp/output.txt > > exit > > > > When I execute it, instead of "hello world" being placed in > /tmp/output.txt, it is printed to the console. If I change the first > line to #!/usr/bin/bash the output is placed in /tmp/output.txt as > expected. This leads me to believe that quite simply "/bin/sh" does > not support this syntax on Solaris 8. The replacement syntax I used > above is platform independent. Since the rest of smbpasswd.php > depends on the output being stored in $tmpfile, it won't work on > Solaris 8 until it is changed. (I obviously changed this on my own > install). > > > > ~ Chris
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers