Bug#443209: Some more info
Hello,
the bug is related to syntax change of smbpasswd: starting from samba version
3.0.8 it no longer accepts password on command line, like kcmsamba seems to
call it when adding new user or changing user password.
A quick and dirty workaround could be:
dpkg-divert --add --rename --divert /usr/bin/smbpasswd.real /usr/bin/smbpasswd
and place in /usr/bin/smbpasswd this script:
8<---------8<---------8<---------8<---------8<---------8<---------8<---------
#!/bin/bash
if [ "$#" -eq 3 -a "$1" = "-a" -a -n "$2" -a -n "$3" ]; then
# Wrap
/bin/echo -e "$3\n$3\n" | /usr/bin/smbpasswd.real -s -a "$2"
else
# No wrap
/usr/bin/smbpasswd.real "$@"
fi
exit $?
8<---------8<---------8<---------8<---------8<---------8<---------8<---------
Except for security considerations about passing passwords on command line
(you warned!), in this way kcmsamba should work
HTH,
S.
--
____________________________________________
AETHIA srl - Power Computing Solutions
via Ribes, 5 - 10010 Colleretto Giacosa (TO)
Tel +39 0125 538824
FAX +39 0125 538621
Email info@aethia.com
Reply to: