[Samba] How to know if a SID is a User or Group

Gerald (Jerry) Carter jerry at samba.org
Tue Jun 13 12:50:53 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Beast wrote:
> Henrik Zagerholm wrote:
>> Hi list and sorry if this is not a specific Samba issue.
>>
>> I just wonder if it is possible to determine if a SID belongs to a
>> User or a Group?
>>
> No you can't. Its same as uid vs gid number.

You can't by looking but the "rpcclient lookupsids" command
will give you the sid type (in integer form).





cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEjrStIR7qMdg1EfYRAsVMAKCiTTvObstF2GD76RMWGM12Rhk14wCfalGN
pmSK1NVMW8u5nk4WVlvzezI=
=vOlP
-----END PGP SIGNATURE-----


More information about the samba mailing list