CentOS Special Privileges Section Fifth

Source: Internet
Author: User

The first half of the class

The second half of the class

Special Permissions/Attributes

Chattr: Valid for both directories and files

Lsattr

Lsattr-d: View special permissions for the current directory

Lsattr-r: For the directory, see all the files under the directory has special permissions, troubleshooting RM-RF 234/deleted issues, directory under a file with special permissions can not delete the entire directory

Chattr +i 2.txt: Add permission, prohibit write to file, delete, rename

Chattr-i 2.txt: Remove Permissions

Chattr +a 2.txt can only append content echo ' xx ' >>2.txt cannot be renamed, cannot be deleted, can create file for directory

Chattr-a 2.txt

F

CentOS Special Privileges Section Fifth

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.