<br><br><div><span class="gmail_quote">On 04/07/07, <b class="gmail_sendername">Krsnendu dasa</b> <<a href="mailto:krsnendu108@gmail.com">krsnendu108@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;">
I have an idea for a script for users to be able to change their own passwords in the smbldap setup.<br>Would it work?<br><br>Create a script with execute only permission for everyone except root.<br>The script would have one main line:
<br>sudo smbldap-passwd <name of user><br><br>Create a menu launcher for the script and put it under System, Settings, ChangeMyPassword<br><br>I imagine it like this.<br>A user clicks on the menu item. A window pops up asking for the password for <name of user>. Then it asks for the new password twice. Then the window closes.
<br><br>How would I automatically get the name of the currently logged in user?<br>
</blockquote></div><br>$USERNAME<br><br>I found the answer to my own question.<br>