Hello, Is there a way to sync the Unix password database with Samba's database? I know that Samba is able to update the Unix database if a user changes their password via smbpasswd, but what if a user changes their Unix password with passwd? I looked into libpam-smbpass, but it didn't seem to work; the documentation was rather sparse, so I just overwrote my /etc/pam.d/samba with the provided "password-sync" in the samples directory. Additionally, I would prefer not to use unencrypted passwords. Thanks, Stephen Le
Hi, the file you need to modify is /etc/pam.d/passwd . You should include a line like this: password required pam_smbpass.so use_authtok use_first_pass smbconf=/etc/samba/smb.conf cheers, Ulf Stephen Le schrieb:> Hello, > > Is there a way to sync the Unix password database with Samba's > database? I know that Samba is able to update the Unix database if a > user changes their password via smbpasswd, but what if a user changes > their Unix password with passwd? > > I looked into libpam-smbpass, but it didn't seem to work; the > documentation was rather sparse, so I just overwrote my > /etc/pam.d/samba with the provided "password-sync" in the samples > directory. > > Additionally, I would prefer not to use unencrypted passwords. > > Thanks, > Stephen Le
Hey Stephen, I too need this answer. As far as I could tell entering 'passwd' will not change samba password. I have not seen any documentation that says it does (at least with tdbsam and smbpasswd as the password backend). Also I wanted to ask you where the samples directory is that you mentioned. Thanks in advance Ganesh Stephen Le wrote:>Hello, > >Is there a way to sync the Unix password database with Samba's >database? I know that Samba is able to update the Unix database if a >user changes their password via smbpasswd, but what if a user changes >their Unix password with passwd? > >I looked into libpam-smbpass, but it didn't seem to work; the >documentation was rather sparse, so I just overwrote my >/etc/pam.d/samba with the provided "password-sync" in the samples >directory. > >Additionally, I would prefer not to use unencrypted passwords. > >Thanks, >Stephen Le > >