The
unix
password
sync
global option allows Samba to update the standard Unix password file when a user changes his or her encrypted password. The encrypted password is stored on a Samba server in the
smbpasswd file, which is located in
/usr/local/samba/private by default. You can activate this feature as follows:
[global]
unix password sync = yes
If this option is enabled, Samba changes the encrypted password and, in addition, attempts to change the standard Unix password by passing the username and new password to the program specified by the
passwd
program
option (described earlier). Note that Samba does not necessarily have access to the plaintext password for this user, so the password changing program must be invoked as
root
.[] If the Unix password change does not succeed, for whatever reason, the SMB password will not be changed either.