[Samba] Group mapping is not showing correct value

Brajesh Shrivastava brajeshkumar_shrivas at symantec.com
Tue Jan 12 03:36:41 MST 2010


Harry Jede wrote:
> On Dienstag, 12. Januar 2010 wrote Brajesh Shrivastava:
>   
>> Brajesh Shrivastava wrote:
>>     
>>> Hi All
>>>
>>> I have created a group 'test' which has the following users:
>>>
>>> brajesh_01:/var/log/samba # getent group |grep test
>>> test:!:13159:brajesh,yatish,usr1
>>> brajesh_01:/var/log/samba #
>>>
>>>
>>> I mapped this user to ntgroup user, 'Web Master':
>>>
>>> brajesh_01:/var/log/samba # net  groupmap add ntgroup="We Master"
>>> unixgroup=test
>>> No rid or sid specified, choosing a RID
>>> Got RID 27319
>>> Successfully added group We Master to the mapping db as a domain
>>> group brajesh_01:/var/log/samba #
>>>
>>> Output of 'net groupmap list' command shows the correct output:
>>>
>>> brajesh_01:/var/log/samba # net groupmap list
>>> We Master (S-1-5-21-3348154469-3767538395-1505805052-27319) -> test
>>> brajesh_01:/var/log/samba #
>>>
>>> But when I try to see the output of 'net rpc group members'
>>> command, it is giving an error message. Please see here:
>>>
>>> brajesh_01:/var/log/samba # net rpc group members "Web Master"  -U
>>> administrator -d 1
>>> Enter administrator's password:
>>> Couldn't find group Web Master
>>> [2010/01/11 10:35:33,  1] utils/net_rpc.c:run_rpc_command(181)
>>>  rpc command function failed! (NT_STATUS_NONE_MAPPED)
>>> brajesh_01:/var/log/samba #
>>>
>>> I am new for group mapping feature. Please let me know where I am
>>> doing wrong.
>>>
>>> Thanks in advance!!!
>>>       
>> Please help me in resolving the above problem, in case if you know
>> the solution.
>>     
> use the same "group name" :-)
>
> "Web Master" and "We Master"
>
> are totally different ;-) 
>
>
>
>   
Thanks for your comment Harry.

By mistake I wrote 'Web Master' instead of 'We Master'. Even I tried 
with 'We Master', I am getting the same error. Do I need to follow any 
other steps. I mapped several unix group to nt group, but still not able 
to see the correct output for at least one group in 'net rpc group 
memebrs' command. May be I am missing something.


More information about the samba mailing list