Samba logins not working

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Samba logins not working

Post by gilthanaz »

[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:

Code: Select all

smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
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).
Post Reply