Centos – Automatic Samba password / linux user passwords sync

centossamba

I used Webmin to setup a basic Samba share on my server. Webmin created my smbusers from the available linux users. But it left all of their smbpassword's as blank instead of using their linux user passwords.

How can I setup Samba so that it uses or sync's passwords with user's linux user passwords?

Best Answer

You can configure samba to use PAM, and therefore to use the same list of users for authentication as already present on your system, including using their current passwords. Exhaustive details are available on the official samba site here.

A small word of caution though - you will probably need to delve directly into the configuration files, I'm not sure you can make the requisite changes via webmin.