[bugs] [Tickets] New ticket (40): smbpasswd on Solaris 8
bugs at bugs.horde.org
bugs at bugs.horde.org
Mon Mar 29 20:00:29 PST 2004
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
-Ticket 40
-Queue: Passwd
-Created By:
-Summary:
smbpasswd on Solaris 8
Comment by chris at huyler.net on Mon Mar 29 20:00:28 2004 (today):
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
--
http://bugs.horde.org/details.php?id=40
--
This mail was automatically generated by Tickets (http://bugs.horde.org/).
If you believe you have recieved this mail in error, please contact Horde
Development Team <dev at lists.horde.org>.
More information about the bugs
mailing list