Does this work for non-root users? When I tried something similar in the pass only root could change passwords. It seemed that users could change their own passwds, but they never actually changed. Maybe it was the way smbldap was set up. It thought that a way around this would be to make a script that runs sudo that calls the smbldap passwd script. all users would need sudo rights to run just the script.<br>
<br><div><span class="gmail_quote">On 07/03/2008, <b class="gmail_sendername">John Lucas</b> <<a href="mailto:mrjohnlucas@gmail.com">mrjohnlucas@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="mailto:ml@bortal.de">ml@bortal.de</a> wrote:<br> > Hello List,<br> ><br> > how can the users change their own password in a unix shell?<br> ><br> > foobar@PDC:~$ passwd<br> > Enter login(LDAP) password:<br>
 > New password:<br> > Re-enter new password:<br> > LDAP password information update failed: Unknown error<br> ><br> > passwd: Permission denied<br> ><br> <br> <br>If you are using SMBLDAP then using "smbpasswd" works to change both the<br>
  Unix and Samba passwords stored in LDAP, just make sure that it acts<br> on the PDC. Assuming the PDC is named "pdchost":<br> <br>        smbpasswd -r pdchost username<br> <br> It will prompt for for old and new passwords. You can put it on a GUI<br>
 menu with xterm:<br> <br>        xterm -e "smbpasswd -r pdchost $USER"<br> <br><br> <br> --<br>         "History doesn't repeat itself; at best it rhymes."<br>                         - Mark Twain<br>
 <br> | John Lucas            <a href="mailto:MrJohnLucas@gmail.com">MrJohnLucas@gmail.com</a>               |<br> | St. Thomas, VI 00802  <a href="http://mrjohnlucas.googlepages.com/">http://mrjohnlucas.googlepages.com/</a> |<br>
 | 18.3°N, 65°W          AST (UTC-4)                         |<br> <br><br> _______________________________________________<br> K12OSN mailing list<br> <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br> <a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
 For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br> </blockquote></div><br>