About the sticky bit in linux)

Source: Internet
Author: User
For details about linux sticky Bit-general technology-Linux technology and application, see the following. To delete a file, you do not have to have the write permission for the file, but you must have the write permission for the file's parent directory. That is to say, even if you do not have the write permission for a file, but you have the write permission for the file's parent directory, you can also delete the file, if you do not have the write permission for a directory, you cannot create files in the directory.

How can a directory be used to allow any user to write files and prevent the user from deleting other people's files in this directory? sticky can play this role. Stciky is generally used only in directories and does not play any role in files.

After sticky is set in a directory, (for example,/home, the permission is 1777) All users can create files in this directory, however, you can only delete files created by yourself (except root), which protects User Files in directories that can be written by all users.
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.