[K12OSN] RE: SMBLDAP - Requiring and facilitating password

Carl Keil carl at snarlnet.com
Tue Dec 2 21:27:39 UTC 2008


Nick,

Thanks for this option.   I still haven't had a chance to implement 
anything, so I might go this direction (seems simplest).

ck



> Here's my script:
> -------------------------------------------------- chpass.sh
> --------------------------------------------------
> #!/bin/bash
> echo "Instructions:"
> echo ""
> echo "You will need to type your old password once, then you new password
> twice."
> echo "Nothing will show up on the screen when you are typing, just press
> enter "
> echo "after each password. Your password must be at least 6 characters long"
> echo ""
> echo "If everything worked, then you will get this message after typing all
> of"
> echo "your passwords: Password changed for user ... "
> echo ""
> /usr/bin/smbpasswd -r 192.168.10.110
> read -p "Press any key exit"
> -------------------------------------------------------------------------------------------------------------------
>
> Command to run:
> xterm -e "sh /usr/local/scripts/chpass.sh"
>
> IceWM menu command:
> prog "Change My Password"
> /usr/share/icons/crystalsvg/16x16/actions/edit_user.png xterm -e "sh
> /usr/local/scripts/chpass.sh"
>
>
> 2008/11/21 Rob Owens <rob.owens at biochemfluidics.com>
>
>   
>> > Hmm, this is a little more complicated than I thought.
>> >
>> > I came up with a simpler idea though.  Create a custom launcher (for
>> > Gnome) that runs smbpasswd in a terminal.  Here it is, as text and as an
>> > attachment:
>> >
>> > [Desktop Entry]
>> > Encoding=UTF-8
>> > Version=1.0
>> > Type=Application
>> > Terminal=true
>> > Icon[en_US]=/usr/share/pixmaps/password.png
>> > Name[en_US]=Password
>> > Exec=/usr/bin/smbpasswd
>> > Comment[en_US]=Change your Samba password
>> > Name=Password
>> > Comment=Change your Samba password
>> > Icon=/usr/share/pixmaps/password.png
>> >
>> > If you want to provide some additional text for instructions, you can
>> > make the launcher call myscript.sh instead of smbpasswd.  myscript.sh
>> > would then be something like:
>> >
>> > #!/bin/bash
>> > echo "This utility will change your Linux and Windows password.  Please
>> > answer the following questions"
>> > /usr/bin/smbpasswd
>> >
>> > -Rob
>> >
>> >
>> > Rob Owens wrote:
>>     
>>> > > Last time I tried, "passwd" did not work.  "smbpasswd" did work, though.
>>> > >  Additionally, changing their password from a Windows machine supposedly
>>> > > works (but I didn't test that).
>>> > >
>>> > > I don't know of a GUI for this.  You could probably write a quick one
>>> > > using zenity.  Zenity makes it really easy to create dialog boxes.
>>> > > Go to System, Help, and search for zenity.
>>> > >
>>> > > I'll see if I can piece together a script tomorrow.  Don't hold your
>>> > > breath, though -- I'm not an expert.
>>> > >
>>> > > -Rob
>>> > >
>>> > >




More information about the K12OSN mailing list