LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check SID of users and groups in Ubuntu? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-sid-of-users-and-groups-in-ubuntu-914889/)

pawan613 11-22-2011 06:00 AM

How to check SID of users and groups in Ubuntu?
 
Hello members,
I'm using Ubuntu 10.10 and need to check SID of different users and groups.
From Users and Group what I can see is User ID.
In windows the SID is something like:
S-1-5-21-796845957-746137067-1343024091-1003

So, similarly I want to check in linux as well.
Please help me how to view SID in linux.
Thank you.

kbp 11-22-2011 04:48 PM

You may be able to do it via an ldap query, I'm not aware of any user2sid/sid2user equivalent for linux.

pawan613 11-22-2011 11:28 PM

Thanks kbp for quick reply,
Can you please be clear on what you saying?
I mean I don't understand what an ldap query is.

kbp 11-23-2011 05:25 AM

Active directory is an ldap compliant directory, using tools like ldapsearch you can obtain information which is stored in the directory as attributes. A users sid will be stored in the directory and therefore can be obtained by querying the directory.

pawan613 11-23-2011 06:44 AM

Oh,
Great info.
Thanks kbp.


All times are GMT -5. The time now is 05:15 PM.