<?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>smbpasswd on Solaris 8</title> 
  <pubDate>Thu, 09 Apr 2026 17:31:34 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/40</link> 
  <atom:link rel="self" type="application/rss+xml" title="smbpasswd on Solaris 8" href="https://bugs.horde.org/ticket/40/rss" /> 
  <description>smbpasswd on Solaris 8</description> 
 
   
   
  <item> 
   <title>I could not get smbpasswd password changing to work from hor</title> 
   <description>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-&gt;_params[&#039;program&#039;] . &quot; -r &quot; . $this-&gt;_params[&#039;host&#039;] .

             &quot; -s -U \&quot;$user\&quot; &amp;&gt; $tmpfile&quot;



When I changed it to...

      $cmd = $this-&gt;_params[&#039;program&#039;] . &quot; -r &quot; . $this-&gt;_params[&#039;host&#039;] .

             &quot; -s -U \&quot;$user\&quot; &gt; $tmpfile 2&gt;&amp;1&quot;



...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 &quot;&amp;&gt;&quot;  I have tested this outside of horde with a simple script:



#!/bin/sh

echo &quot;hello world&quot; &amp;&gt; /tmp/output.txt

exit



When I execute it, instead of &quot;hello world&quot; 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 &quot;/bin/sh&quot; 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&#039;t work on Solaris 8 until it is changed.  (I obviously changed this on my own install).



~ Chris</description> 
   <pubDate>Tue, 30 Mar 2004 04:00:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/40#t178</link> 
  </item> 
   
  <item> 
   <title>Try Passwd 2.2.1-RC1.</title> 
   <description>Try Passwd 2.2.1-RC1.</description> 
   <pubDate>Tue, 30 Mar 2004 08:38:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/40#t179</link> 
  </item> 
   
  <item> 
   <title></title> 
   <description></description> 
   <pubDate>Tue, 30 Mar 2004 15:53:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/40#t180</link> 
  </item> 
   
  <item> 
   <title>This problem is not addressed in 2.2.1-RC1.</title> 
   <description>This problem is not addressed in 2.2.1-RC1.</description> 
   <pubDate>Tue, 30 Mar 2004 22:20:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/40#t181</link> 
  </item> 
   
  <item> 
   <title></title> 
   <description></description> 
   <pubDate>Wed, 31 Mar 2004 09:31:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/40#t182</link> 
  </item> 
   
  <item> 
   <title>Committed, thanks.</title> 
   <description>Committed, thanks.</description> 
   <pubDate>Wed, 31 Mar 2004 21:53:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/40#t183</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
