What are SUID and SGID?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What are SUID and SGID?
Rating:
Set user ID (SUID) and Set group ID (SGID) are used to set a file to run as something other than the standard. Normally, when a file is executed, it runs as the user who invokes it. Setting a file to SUID or SGID simply requires adding an extra digit to the permissions. Technically, if no digit is used, it assumes a leading 0.
| 0 | Standard: File runs as the user who invokes it. |
| 2 | SGID: File runs as a member of its group. |
| 4 | SUID: File runs as its owner. |
| 6 | Both SUID and SGID. |
Rating:
Was this information helpful?
Other articles
- What is USERMOD command?
- What is swap partition?
- What is the ls command?
- What is the export command?
- What is NFS?
