请教下,以下两个会话ID有啥关系吗?
[root@xxx ~]# ps
PID TTY TIME CMD
16347 pts/0 00:00:00 bash
19923 pts/0 00:00:00 ps
[root@xxx ~]# ps -o pid,sid 16347
PID SID
16347 16347
[root@xxx ~]# cat /proc/16347/sessionid
25589
请教:sid和sessionid有啥关系吗?
- jiandan23
- 帖子: 94
- 注册时间: 2010-12-17 22:31
- 系统: Mint 19.2
- astolia
- 论坛版主
- 帖子: 6703
- 注册时间: 2008-09-18 13:11
- jiandan23
- 帖子: 94
- 注册时间: 2010-12-17 22:31
- 系统: Mint 19.2
Re: 请教:sid和sessionid有啥关系吗?
了解了,谢谢!astolia 写了: ↑2024-07-23 11:23 没关系。
一个是为了进程分组,man 2 setsid
一个是为了审计登录会话,https://www.kernel.org/doc/Documentatio ... t_loginuid