Jöran Malek
2023-Aug-04 16:42 UTC
[Samba] pam_unix failing after pam_winbind when Samba is running in Standalone Server mode
Basically, yes. Regarding the user.map-file - I'm not quite sure which module that should configure, or where to put that. A web search engine query didn't bring up any information for either PAM or Samba. Best, J?ran> You seem to be describing running Samba in a workgroup (bit rusty on > this, it has been a long time). In a workgroup, (if I remember > correctly) even if you use the same workgroup name, every Samba computer > will have a different SID, that is where I think the problem lies. > > You could try this, start with one machine and setup Samba as a > standalone server, then add your Unix users and make them Samba users > with 'smbpasswd -a USERNAME'. Do this on all workgroup computers, ensure > that you use the same workgroup name. Now create a user.map file on each > computer, lets say your user is 'fred' and you are using the workgroup > 'HOME', add lines like this: > > !fred = HOME\fred > > I have no idea if that will work, I think it will, but it is the only > thing I can think of at the moment. > > Rowland
Rowland Penny
2023-Aug-04 17:06 UTC
[Samba] pam_unix failing after pam_winbind when Samba is running in Standalone Server mode
On 04/08/2023 17:42, J?ran Malek via samba wrote:> Basically, yes. > > Regarding the user.map-file - I'm not quite sure which module that > should configure, or where to put that. > A web search engine query didn't bring up any information for either > PAM or Samba. >If it will work (and I don't know if it will), you don't really configure anything, you just add a line similar to this in smb.conf: username map = /etc/samba/user.map Then create the user.map containing the information I described earlier, hopefully this should map your users from the other machines to the users on the local machine. Rowland