There are two system calls getsid(2) and getlogin(2) that return session identifier and login name associated to current session, but it seems that there is no user command to show these values. I expect id(1) command to be able to show SID and login name, but it can not (at least in 6.4-STABLE release I'm currently using).
It should be quite easy to extend id(1) command to be able to print these values.
Are there any reason why these values could not be displayed via user commands?
It should be quite easy to extend id(1) command to be able to print these values.
Are there any reason why these values could not be displayed via user commands?