Introduction to Linux Rights Management--acl permissions

Source: Internet
Author: User
Tags uuid

ACL permissions are not for a file or a directory, it is for a partition.

viewing system partitions using DF-H

1[Email protected] ~]$DF-h2Filesystem Size used Avail use%mounted on3/dev/sda3 16G2.9G 12G -% /4Tmpfs 947M0947M0%/dev/SHM5/DEV/SDA1 291M 35M 242M -% /Boot6/dev/sr03.0G3.0G0  -%/media/cdrom

The partition number you can see is/dev/sda3, to see if/dev/sda3 supports ACL permissions
Use the command DUMPE2FS to see if ACLs are supported

1[Email protected] ~]# dumpe2fs-h/dev/Sda32Dumpe2fs1.41. A( --may- .)3Filesystem Volume Name: <none>4Last mounted on:/5Filesystem uuid:4e32f639-ccc9-4942-ac35-b281fdfbb79e6Filesystem Magic Number:0xef537Filesystem Revision #:1(dynamic)8 Filesystem features:has_journal ext_attr resize_inode dir_index filetype needs_recovery extent FLEX_BG Sparse_su Per large_file huge_file uninit_bg dir_nlink extra_isize9 Filesystem Flags:signed_directory_hashTenDefaultMountoptions:user_xattr ACL One Filesystem State:clean AErrors behavior:continue

You can see that the default Mount options item is an ACL-enabled

The general operating system supports ACL permissions by default. If you do not support ALC permissions that enable partitioning
Re-mount/partition with the mount command and support ACL permissions

1 Mount -o remount,acl/

Re-mount with mount command and support ACL permissions are only temporary and fail after system restart

1[Email protected] ~]# vim/etc/Fstab2 3   1 4   2 #5   3#/etc/Fstab6   4# Created by Anaconda in Sun May1  the: +: .  .7   5 #8   6# Accessible filesystems, by reference, is maintained under'/dev/disk'9   7# SeeMansPages Fstab (5), Findfs (8),Mount(8) and/or Blkid (8) for  More InfoTen   8 # One   9uuid=4e32f639-ccc9-4942-AC35-B281FDFBB79E/EXT4 defaults1 1 A  TenUuid=7e2ce555-c044-41f8-9cd5-18c7d5293cf1/boot EXT4 Defaults1 2 -   Oneuuid=fa77a5dd-1f7f-4428-bcc4-79f7742ed320 Swap swap Defaults0 0

The default is to support ACL permissions, if not supported by default, we can add the ACL option after the corresponding partition, as shown below, with/partition as an example

1 9 uuid=4e32f639-ccc9-4942-ac35-b281fdfbb79e/                       ext4    defaults,acl        11 

Introduction to Linux Rights Management--acl 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.