Set UID, set GID, Sticky Bit in Linux

Source: Internet
Author: User
Set UID:

SUID permissions are valid only for binary programs

Performer must have X executable permission for the program

This permission is valid only in the course of executing the program

Performer will have permission to host the program



Set GID:

Sgid useful for binary programs and directories

Program performer requires x permission for the program

The performer will receive support for the program group during execution

Users can enter this directory if they have r and X permissions for this directory

A valid group of users in this directory will become a group of that directory





Sticky Bit

This is currently only valid for the directory, the file will not be effective.

When a user has w,x permissions on this directory, they also have write permissions

When a user creates a file or directory under that directory, only himself and root can delete the file or directory



4 for Suid

2 for Sgid

1 for Sbit











Set UID, set GID, Sticky Bit in Linux

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.