smbpasswd is the program, but it is not runable by regular users. Otherwise they could change anyone's password. :(<br>The concept of the script is to only allow users to change their own password, and to do that they have to enter their own current password.
<br>Your idea of a link seems like a good idea.<br><br>Krsnendu dasa<br><br><div><span class="gmail_quote">On 08/10/2007, <b class="gmail_sendername">Rob Owens</b> <<a href="mailto:rowens@ptd.net">rowens@ptd.net</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;">Thanks, I found the script you were talking about.  However, if someone could confirm to me that 'smbpasswd' is just as good, then I wouldn't need to bother with the script and with sudoers, etc.
<br><br>But it would be really nice for the Linux password GUI tools to work.  Maybe I could do this:<br>mv /usr/bin/passwd /usr/bin/passwd.bak<br>ln -s /usr/bin/smbpasswd /usr/bin/passwd (or link your script to /usr/bin/passwd)
<br><br>I tried it at the command line and it works, but I haven't tried it on a system with a GUI installed yet...  I wonder if this could cause problems with any future software installations that create a user as part of the install (for instance: backuppc, apache, etc)
<br><br>-Rob<br><br>On Mon, Oct 08, 2007 at 04:30:17AM +1300, Krsnendu dasa wrote:<br>> It should work with windows clients.<br>> As far as linux users. search the archives. I had a suggestion for a script<br>> that runs smbldap as sudo. It might be a good starting point for you.
<br>> The idea of a web interface to change passwords is a good idea mentioned on<br>> the smbldap website, but it seems nothing came of it.<br>><br>> Krsnendu dasa<br>><br>> On 08/10/2007, Rob Owens <
<a href="mailto:rowens@ptd.net">rowens@ptd.net</a>> wrote:<br>> ><br>> > I ran the smbldap-installer scripts on a Debian Etch machine as a<br>> > test.  Everything seems to have worked fine.  My question is, what is the
<br>> > proper method to change passwords (as a non-privileged user).<br>> ><br>> > 'smbpasswd' seems to work.  Is this what I'm supposed to use?  What about<br>> > a linux-only user who is not assigned any samba credentials?
<br>> ><br>> > 'passwd' gives me this error after allowing me to enter my new password<br>> > twice:<br>> > LDAP password information update failed: Unknown error<br>> ><br>> > 'ldappasswd' gives me this error immediately:
<br>> > ldap_sasl_interactive_bind_s: No such attribute (16)<br>> ><br>> > '/usr/sbin/smbldap-passwd' lets me enter my new password twice, then gives<br>> > me these two errors:<br>> > failed to modify entry: Insufficient access at /usr/sbin/smbldap-passwd
<br>> > line 227, <STDIN> line 3.<br>> > Unable to change password: Insufficient access at /usr/sbin/smbldap-passwd<br>> > line 261, <STDIN> line 3.<br>> ><br>> > Also, I don't have any Windows clients to test...  Does changing passwords
<br>> > through the Windows password utility work?<br>> ><br>> > Thanks<br>> ><br>> > -Rob<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>> ><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><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>