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

Such as:

-rwsr-xr-x. 1 root root 27832 June 2014/bin/passwd


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 and the file is invalid.

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

Such as:

DRWXRWXRWT. 11514 root root 516096 Dec 15:22 tmp



4 for Suid

2 for Sgid

1 for Sbit











Set UID, set GID, Sticky Bit in Linux

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.