If I want to get the SID of a particular user in windows. I would run the following cmd from a DOS windows:
cmd> wmic useraccount get name,sid
example output> kehelly S-1-5-21-3623811015-3361044348-30300820-1013
SID: Security Identifier.
When a user logs into a computer, their user SID and privileges are read. When this user requests access to a resource, the SID is checked and access is granted or denied depending on the SID.
I am trying to get similar info on a linux machine. Does anyone know how to do this?
id user
. It will give his UID, GID... (UID = user ID, GID= group ID).id -u
, which prints the effective user id. But I don't think that maps 1-on-1 to a Windows SID.