A better method is to use pam to authenticate against your samba server, that way when you change the password via smbpasswd or passwd it will be updated globally. You can use winbind to do this, or if you have CentOS or RHEL system-config-authentication will give you an easy to use interface (by far the fastest way I've been able to join a linux desktop to a domain)