[Samba] Add gidNumber for group

Rowland penny rpenny at samba.org
Fri Jun 19 17:53:37 UTC 2020


On 19/06/2020 18:48, Rowland penny via samba wrote:
> On 19/06/2020 18:16, Robert E. Wooden via samba wrote:
>> On 6/19/2020 10:00 AM, Rowland penny via samba wrote:
>>>
>>> I take it you mean 'gidNumber' ;-)
>>
>> Sorry, yes you are correct . . . gidNumber.
>>
>> (on Debian 10.4 with Samba 4.12.3)
>>
>> So I did:
>>
>> root at dc01:~# samba-tool group add unixattrs
>> Added group unixattrs
>> root at dc01:~# ldbsearch -H /var/lib/samba/private/sam.ldb cn=Domain\ 
>> Users | grep 'gidNumber'
>> root at dc01:~#
>>
>> Still no gidNumber is offered.
>>
>> I see that it did add a unixattrs group (samba-tool group list).
>>
>> Did I misunderstand?
>>
> Doh, I think you have found a bug, try the command again, this time 
> add ' --help' on the end, the help will tell you what you missed ;-)
>
> I go now to check the code
>
> Rowland
>
>
>
And no, I didn't get it wrong Robert, you did, you must have Samba 
4.12.x and the command is:

samba-tool group addunixattrs <groupnane> <next_available_gidNumber>

'samba-tool group add unixattrs' does something else entirely

Rowland





More information about the samba mailing list