getpwnam/uid for group with ID_TYPE_BOTH
Uri Simchoni
uri at samba.org
Wed Sep 25 18:14:12 UTC 2019
On 9/24/19 12:45 AM, Stefan Metzmacher via samba-technical wrote:
> Hi Rowland,
>
> No, it did with 4.5 and that's how it's supposed to be.
> That's exactly what ID_TYPE_BOTH is all about.
>
> metze
>
Hi metze,
Can you elaborate on that sentence, and what is the use case for
generating passwd for a group? Is it related to a file being owned by a
group SID (administrators)?
I'm not sure I ever understood this ID_TYPE_BOTH thing - I seem to
remember that my understanding has been that it simplifies the code -
that some rid backends don't know and don't care if a SID is a group or
a user, but they sure can convert it to a unix ID, hence the "both", but
that explanation doesn't mandate ability to generate passwd for a group,
so hearing that this is actually what ID_TYPE_BOTH is all about was
surprising to me.
Thanks,
Uri.
More information about the samba-technical
mailing list