After compiling and installing samba into a custom directory, and adding users using smbpasswd -a <username> , authentication of those users does not work when trying to access shares from another box.
[Solution]
Due to the non-standard installation directory, Samba stored the user and pwd files in a different directory. It was, however, when trying to authenticate the users, looking in the standard directory. Thus, there were two passwd files existing - one in which the users were written, and one which got read on access tries. You can easily fix this by just telling samba exactly which files to use:
Code: Select all
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers