Set, update or change a user password in Samba.
If domain admin or user password that is set on samba needs to be updated.
Open terminal then update using the command below:
smbpasswd -a administrator
After pressing enter, type the password twice to validate and confirm the password.
If the user name or admin password has been updated on the Windows Active Directory, then the Samba password has to be updated as well.
If the samba password is not updated then the client from the windows environment authenticating to samba will not be able to connect to samba shares.
To dig more about smbpasswd check out link below:
This option specifies that the username following should be added to the local smbpasswd file, with the new password typed (type
for the old password). This option is ignored if the username following already exists in the smbpasswd file and it is treated like a regular change password command. Note that the default passdb backends require the user to already exist in the system password file (usually
/etc/passwd), else the request to add the user will fail.
This option is only available when running smbpasswd as root.
Cheers..Hope it helps..