Samba logins not working
Posted: Sun Mar 12, 2006 1:23 am
[Problem]
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:
In this case, i chose to use the standard directory in /etc/samba for my user files, as most tools will look there (like smbpasswd).
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