Morgenstern reports, “A recent Apple support note points to the issue: ‘When attempting to use smbpasswd to change a user’s password in Terminal, the command does not work. Instead, the message “smbpasswd: Command not found” appears in Terminal. Resolution To change a user account password in Lion, open the Users and Groups pane of System Preferences. The Mac must be bound to same domain the user belongs to. Additional Information The smbpasswd command line utility is part of Samba, which is not included with Lion or Lion Server.’ …We can hope for improvement in Mountain Lion.”
Read more in the full article here.