[Samba] Making Linux and domain users the same

TAKAHASHI Motonobu monyo at monyo.com
Sat Mar 2 23:30:52 MST 2013


From: org-samba at freed.com
Date: Sat, 2 Mar 2013 08:44:34 -0500 (EST)

>> Is your /etc/nsswitch.conf setup to use winbind?
> 
> Yes -- and winbindd is running.  

>> $ ls -n
>> total 4
>> -rw-r--r-- 1    12903      100 3 Mar  2 03:40 File_Created_In_Linux
>> -rwxrw-rw- 1 16777217 16777216 3 Mar  1 13:12 File_Created_In_Windows
> 
> And:
> 
>> [global]
>>         idmap uid = 16777216-33554431
> 
> So your "joe" user is picking up an "IDMAP"ped UID.  That's expected
>> behaviour unless Samba is told any other way to map the name to a Unix
>> UID - it needs to get that information from somewhere.

Use idmap_nss instead of idmap_tdb (default).

idmap_nss picks uid/gid from /etc/passwd or its altinatives (such as NIS),
instead of generating its own value.

---
TAKAHASHI Motonobu <monyo at monyo.com> / @damemonyo 
                   facebook.com/takahashi.motonobu



More information about the samba mailing list