OS X Lion: Unable to use Terminal command smbpasswd
Symptoms
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.
Important: Information about products not manufactured by Apple is provided for information purposes only and does not constitute Apple’s recommendation or endorsement. Please contact the vendor for additional information.
Read more http://support.apple.com/kb/TS4311