[Samba] Map multiple NT users to the same Unix user with tdbsam

Chris Weiss cweiss at gmail.com
Wed Mar 2 08:04:51 MST 2011


reply below, and please cc the list with your replies.

On Wed, Mar 2, 2011 at 12:22 AM, Christian Aichinger <Greek0 at gmx.net> wrote:
> On 01.03.2011 20:45, Chris Weiss wrote:
>>
>> check out the "force user" and "force group" share options.
>
> Thank you, that looks like it would work.
>
> So, with tdbsam there's absolutely no way around adding all the Samba users
> to /etc/passwd? It's not a big problem, but I'm rather curious why it was
> designed this way?

there is a smbusers file that can map samba/windows users to unix
users like you want, but it's a pain to maintain and adds a level of
"magic" that can bite you when you go to debug something in the
future.

smbusers is also global, so it would apply to shares on POSIX
filesystems as well, which you may or may not want now or in the
furture.  Doing it share level makes the mapping easy to see, doesn't
require maintenance when you add or remove users, and gives you future
flexibility.

Also, as Jean-Pierre stated on the list, NTFS-3G supports a
"permissions" mount option so that POSIX permissions can be used
directly.


More information about the samba mailing list