Linux Extended permissions

Source: Internet
Author: User

Extended permissions include S,g,t

    1. For creating a file or folder by the Umask value to determine the common default permissions for normal users The default is 0002 root is 0022
    2. The default permissions for the directory are 777-umask (normal user 775 root is 755) The default permissions for files are 666-umask (normal user 664)
    3. Special permissions suid sgid sticky
    4. Suid an X-bit that does not affect the directory for the user who owns the file will change to S, such as passwd
    5. Sgid is executed as the file belongs to the group, and the owning group of any new file created for the directory is the same as the group in which the directory belongs to the x in the G-bit.
    6. Sticky only users who have write access to the directory can delete files they own and cannot delete files owned by other users
    7. Set suid chmod u+s file name (usually set to executable file) with the number 4 position in the preceding example of Ugo 4755
    8. Set Sgid chmod g+s file (clamp) name with number 2 Ibid.
    9. Set sticky chmod o+t folder with number 1 Ibid.

Linux Extended permissions

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.