<?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>Script for passwd which uses sudo</title> 
  <pubDate>Fri, 10 Apr 2026 13:09:18 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5300</link> 
  <atom:link rel="self" type="application/rss+xml" title="Script for passwd which uses sudo" href="https://bugs.horde.org/ticket/5300/rss" /> 
  <description>Script for passwd which uses sudo</description> 
 
   
   
  <item> 
   <title>I didn&#039;t like the current possibilities and decided to copy </title> 
   <description>I didn&#039;t like the current possibilities and decided to copy one of the expect scripts and change it to use sudo.



I could not get it to work with the &#039;expect&#039; driver, but with the &#039;procopen&#039; driver it works great!</description> 
   <pubDate>Tue, 24 Apr 2007 14:15:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t32209</link> 
  </item> 
   
  <item> 
   <title>Can&#039;t you merge this with the existing passwd_expect script?</title> 
   <description>Can&#039;t you merge this with the existing passwd_expect script?</description> 
   <pubDate>Wed, 25 Apr 2007 13:46:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t32236</link> 
  </item> 
   
  <item> 
   <title>Ping?</title> 
   <description>Ping?</description> 
   <pubDate>Thu, 10 May 2007 09:29:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t32892</link> 
  </item> 
   
  <item> 
   <title>Apologies, other projects demanded my attention...



I merg</title> 
   <description>Apologies, other projects demanded my attention...



I merged it into the passwd_expect.</description> 
   <pubDate>Thu, 10 May 2007 09:39:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t32896</link> 
  </item> 
   
  <item> 
   <title>Committed, thanks.



Can you please explain why this doesn&#039;</title> 
   <description>Committed, thanks.



Can you please explain why this doesn&#039;t work with the expect driver, and how made it work with the procopen driver?</description> 
   <pubDate>Thu, 10 May 2007 10:45:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t32902</link> 
  </item> 
   
  <item> 
   <title>Could you please add the following comments to the script? I</title> 
   <description>Could you please add the following comments to the script? I forgot that myself....



# alter sudoers (using visudo) so it contains the following information:

# -----

# # Needed for Horde&#039;s passwd module

# Runas_Alias     REGULARUSERS = ALL, !root

# apache ALL=(REGULARUSERS) NOPASSWD:/usr/bin/passwd

# -----



</description> 
   <pubDate>Thu, 10 May 2007 11:42:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t32904</link> 
  </item> 
   
  <item> 
   <title>Updates version, includes comments and fixed a small bug</title> 
   <description>Updates version, includes comments and fixed a small bug</description> 
   <pubDate>Tue, 22 May 2007 14:27:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t33350</link> 
  </item> 
   
  <item> 
   <title>&gt; Committed, thanks.

&gt;

&gt; Can you please explain why this d</title> 
   <description>&gt; Committed, thanks.

&gt;

&gt; Can you please explain why this doesn&#039;t work with the expect driver, 

&gt; and how made it work with the procopen driver?



If I use the expect driver, the webpage always states that the update was succesful, even if I entered a wrong password or a too short new password.



I used the following lines in backends.php to get the script running with sudo:

------

$backends[&#039;sudo_passwd&#039;] = array(

    &#039;name&#039; =&gt; &#039;Webmail&#039;,

    &#039;preferred&#039; =&gt; &#039;&#039;,

    &#039;password policy&#039; =&gt; array(),

    &#039;driver&#039; =&gt; &#039;procopen&#039;,

    &#039;params&#039; =&gt; array(

        &#039;program&#039; =&gt; &#039;/usr/bin/expect &#039; . dirname(__FILE__) . &#039;/../scripts/passwd_expect -sudo&#039;

    )

);

=====

</description> 
   <pubDate>Tue, 22 May 2007 14:30:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t33351</link> 
  </item> 
   
  <item> 
   <title>Fixes and example configuration committed.</title> 
   <description>Fixes and example configuration committed.</description> 
   <pubDate>Thu, 20 Sep 2007 20:31:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5300#t37035</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
