Linux permissions settings for files and directories

Source: Internet
Author: User
Tags chmod file system

1, Usermod, Chown, and other modified files of the owner, belong to the group, in order to achieve the modification of file access rights. viewing with IDs

2, chattr + +-filename makes the file or directory can only be read can not be deleted, or only append.

3, chmod +/-finame permissions for a given file directly

3. chmod + + +-filename allows a file to be given specific permissions by a particular user or for a specific purpose.

4, Setfacl-m +/-filename to give the specified user specified permissions,-X cancellation. Getfacl View

5. Setfacl may not support new mounted disks, either by adding support using Mount-o ACLs or by adding to/etc/fstab,

Either specify when MKE2FS format the file system, or modify it using TUNE2FS. (Note: Mount, TUNE2FS and other settings are for the setfacl of the set effective)

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.