What's the purpose of each of the different UIDs a process can have?

前端 未结 5 526
暖寄归人
暖寄归人 2020-12-04 12:39

Real UID, effective UID, and some systems even have a \"saved UID\". What\'s the purpose of all these, especially the last one?

5条回答
  •  庸人自扰
    2020-12-04 12:52

    Each Linux process has 3 UIDs associated to it.

    • Real UID: The UID of the process that created THIS process.
    • Effective UID: This is used to evaluate privileges of the process to perform a particular action.
    • Saved UID: For the binary image file with a setuid bit on it.

提交回复
热议问题