[Samba] Some direction of Samba4 Sid to Uid/Gid ?

Wei-Tsun Sun wsun013 at gmail.com
Fri Jan 14 18:22:37 MST 2011


On 15/01/2011 1:50 p.m., Taylor, Jonn wrote:
>
> On 01/14/2011 02:04 PM, Wei-Tsun Sun wrote:
>> Did a git-pull and built samba4, up and running with winbind.
>>
>> I have a file server, which will be access by windows. Say I have a
>> user named "abcde" (uid = 1000), under group "abcde) (gid = 1000).
>>
>> When I created a user with samba-too (samba-tool newuser abcde xxxxx),
>> it creates an account "abcde" with mapped uid 300018 under group user
>> users.
>>
>> I am really wondering if there is anyway to make the "abcde" created
>> under samba to link with the "abcde" in my local linux.
>>
>> I have :
>>      idmap config SAMDOM: default = yes
>>      idmap config SAMDOM: backend = tdb
>>      idmap config SAMDOM: range = 1000-20000
>>
>> in my smb.conf
>>
>> But it seems the uid goes anywhere not near 1000.
>>
>> Cheers.
> Have a look at http://wiki.samba.org/index.php/Samba4/Winbind
>
> Jonn

I did, that is why I am bringing this up. In the "Testing" section:

#id Administrator
uid=0(root) gid=100(users) groupes=0(root),100(users),3000004(Group 
Policy Creator Owners),3000008(Domain Admins)

ID Administrator is not duplicated with the user name in the system.
However, "abcde", which is already in my system with uid 1000, and the 
one created by the samba-tool is with uid 300018.
When I
$id abcde
, I get abcde from the system but not from the samba4. Furthermore, 
files created via samba by the uid 300018 is not deletable by user uid 1000.



More information about the samba mailing list