Smbpasswd has mysteriously stopped working. I think I know why. It's happened while I was testing a script to delete users, which runs "userdel -r $username" and then "smbpasswd -x $username"
Attempting to use smbpasswd fails, like so:
- Code: Select all
roshniserver:/home/ali# smbpasswd -a naveed
New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user naveed.
Failed to modify password entry for user naveed
the user definitely already exists and has a password set in unix.
I am logged in as root while doing it.
I've tried restarting samba several times.
This seems to be a similar problem: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529735
but no solution is provided. Any ideas ?
Edit: I also found this which seems very similar too, and again nobody helped him

http://www.linuxquestions.org/questions ... dc-666884/