How to determine if a SID is group or user?

Marc Jacobsen Marc_Jacobsen at
Thu Nov 9 19:47:20 GMT 2000


Programmatically, you can do a sid_split_rid() on the sid to get the rid, then
do a pdb_rid_is_user() to determine if the rid is a user's or a group's.

-Marc Jacobsen

John M Trostel wrote:
> How would I figure out if a specific ACE entry pertains to a group or a
> user?
> I can go in and look at the uid and/or gid with sid_to_uid or sid_to_gid
> (from the ace), but there must be some way to differentiate between the
> group and user ace's.
> --
> John M. Trostel
> Linux OS Engineer
> Connex
> jtrostel at

More information about the samba-technical mailing list