Special permissions for files in Linux

Source: Internet
Author: User

1.suid is: Let the ordinary user can perform "only root permission to execute" Special permissions, Sgid "group" ( only valid for binary program )

2.stick bit (paste bit) is: Unless the directory owner and root user has permission to delete it, other users can not delete and modify this directory . (2.1 Sgid useful for binary 2.2 for directories: The user has the RX permission to the directory to enter the directory , the user enters this directory, the effective user group becomes the user group of the directory, If the user has W permissions in this directory, the user creates a file user group that is the same as the directory user Group )

3.sticky bit (paste bit) is: unless the owner and root user of the directory has permission to delete it, other users cannot delete and modify the directory . (for catalogs only)

Finally, after some files have special permissions set, the letters are not lowercase s or T, but the uppercase S and T, which means that the special permissions on this file do not take effect because you have not given it the user's X permission.

Special permissions for files 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.