Special permissions on Linux file systems (SUID, SGID, Sticky)

Source: Internet
Author: User

Linux Special permissions on the file system (SUID, SGID, Sticky)


Any executable program file can be started as a process: depending on whether the initiator has EXECUTE permission on the program file;

After initiating as a process, its owner is not the initiator, and the program file belongs to the owner; this mechanism is suid;

Permission settings:

chmod u+s FILE ...

chmod u-s FILE ...


S: The owner of the original has x permission;

S: The original owner has no x permission;


By default, when a user creates a file, it belongs to the base group that the user is a member of;

Once a directory has been set with Sgid permissions, the user who has write permission to this directory has the same group as the directory, not the user's base group, to which the files created in this directory belong.

Permission settings:

chmod g+s FILE ...

chmod g-s FILE ...


for a multi-person writable directory, this permission is used to restrict each file that can only delete itself;

Permission settings:

chmod o+t FILE ...

chmod o-t FILE ...

Special permissions on Linux file systems (SUID, SGID, Sticky)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.