Linux Learning 134 Unit 2

Source: Internet
Author: User

Second Book Unit II


1. What is the permission list

A permission setting that adds a name to a file's permissions

2. How to view the list of permissions

[[email protected] mnt]# ls-l file

-rw-r--r--. 1 root root 0 Nov 7 09:14 file

|

If this bit is ".", it means that there is no permission list on this

If this bit is "+", the list of permission permissions exists


3. How to view the list of permissions

[[email protected] mnt]# ls-l file

-rw-rw-r--<<+>> 1 root root 0 Nov 7 09:14 file

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/91/7D/wKiom1j2NyLBoQwAAAA_XoGa_Uc997.jpg "title=" 36020170418235528847.jpg "alt=" Wkiom1j2nylboqwaaaa_xoga_uc997.jpg "/>

[[email protected] mnt]# Getfacl file

# File:file # #文件名称

# Owner:root # #文件所有人

# Group:root # #文件所有组

user::rw- # #所有人权限

user:student:rw- # #特定用户权限

group::r-- # #所有组权限

mask::rw- # #特定用户生效的最大权限

other::r-- # #其他人权限

4. How to set ACL permissions

Setfacl

Setfacl - m <u|g|m>:<username|groupname>: Permissions filename # #设定acl

setfacl-x <u|g>:<username|groupname> filename # #去除某个用户或者组的acl

Setfacl-b filename # #删除文件上的权限列表

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/91/7C/wKioL1j2N4bBjEe-AABep2gwKYg125.jpg "style=" float : none; "title=" 36020170418235556216.jpg "alt=" Wkiol1j2n4bbjee-aabep2gwkyg125.jpg "/>

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M00/91/7D/wKiom1j2N4fgwPiTAAB0sioqplM580.jpg "style=" float : none; "title=" 36020170418235718794.jpg "alt=" Wkiom1j2n4fgwpitaab0sioqplm580.jpg "/>

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/91/7E/wKiom1j2OECQ9CR-AAB_EGokQRs003.jpg "style=" float : none; "title=" 36020170418235943329.jpg "alt=" Wkiom1j2oecq9cr-aab_egokqrs003.jpg "/>

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M01/91/7C/wKioL1j2OEGi9_kMAACEAlYoMHg199.jpg "style=" float : none; "title=" 36020170418235952552.jpg "alt=" Wkiol1j2oegi9_kmaacealyomhg199.jpg "/>

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M02/91/7C/wKioL1j2OEGCHc5xAACDK1-1AiM092.jpg "style=" float : none; "title=" 36020170419000038971.jpg "alt=" Wkiol1j2oegchc5xaacdk1-1aim092.jpg "/>

650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/91/7C/wKioL1j2OIuzsonxAACEl1yVdVg392.jpg "style=" float : none; "title=" 36020170419000148867.jpg "alt=" Wkiol1j2oiuzsonxaacel1yvdvg392.jpg "/>





5.acl Default Permissions

The default permissions are used for the directory, allowing all new files in the directory to inherit this permission, which does not take effect on the directory itself and does not affect files that already exist in the directory

setfacl-m d:<u|g|o>:<username|group>:rwx Directory # #设定默认权限

setfacl-x d:<u|g|o>:<username|group> Directory # #撤销目录中的某条默认权限

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/91/7C/wKioL1j2OL_BI0_-AABs_0obRPE586.jpg "style=" float : none; "title=" 36020170419000158550.jpg "alt=" Wkiol1j2ol_bi0_-aabs_0obrpe586.jpg "/>

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M00/91/7E/wKiom1j2OL-Db1zkAABxEvv2_xw632.jpg "style=" float : none; "title=" 36020170419000205463.jpg "alt=" Wkiom1j2ol-db1zkaabxevv2_xw632.jpg "/>

650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M00/91/7E/wKiom1j2OXnDwGX7AABHRfzFUgA066.jpg "style=" float : none; "title=" 36020170419000528688.jpg "alt=" Wkiom1j2oxndwgx7aabhrfzfuga066.jpg "/>

650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M00/91/7C/wKioL1j2OXmSqrbwAAApkYX4OCw655.jpg "style=" float : none; "title=" 36020170419000552574.jpg "alt=" Wkiol1j2oxmsqrbwaaapkyx4ocw655.jpg "/>


7. In Rhel6 and previous versions, the user-created partition does not support ACLs, and if necessary, the ACL parameter must be loaded

Mount-o Remount,acl Equipment

Vim/etc/fstab

Equipment mount point type Defaults,acl 0 0



650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/91/7C/wKioL1j2OYqweHXHAACbtDS5N9g380.jpg "title=" 36020170419000604719.jpg "alt=" Wkiol1j2oyqwehxhaacbtds5n9g380.jpg "/>

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/91/7E/wKiom1j2Ob2B5vldAADhN7serVc197.jpg "style=" float : none; "title=" 36020170419000701307.jpg "alt=" Wkiom1j2ob2b5vldaadhn7servc197.jpg "/>

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/91/7C/wKioL1j2Ob2BFjp2AABvNPhqBdg185.jpg "style=" float : none; "title=" 36020170419000706936.jpg "alt=" Wkiol1j2ob2bfjp2aabvnphqbdg185.jpg "/>


Linux Learning 134 Unit 2

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.