Linux Special File control permissions Facl

Source: Internet
Author: User

Set special permissions on the file, Facl (file access Control List)

ACL Introduction

Basic ACL operations

Getfacl View file permissions Setfacl set ACL permissions

Set ACL permissions for file

[Email protected] tmp]#setfacl-m u:ftp:rwx 1  . SH [[email protected] tmp]# [[email protected] tmp]# ll1. SH-rw-rwxr--+ 1FTP FTP theSep -  -: A 1. SH #文件详情多个 +[[email protected] tmp]# getfacl 1 . Sh # File:1. sh# owner:ftp# GROUP:FTPUSER::RW- user:ftp:rwx #多个附属的ftp的权限group::r--Mask::rwxother::r--
Setfacl Command Parameters
[Email protected] tmp]# Setfacl-Hsetfacl2.2. the--Setfile access control listsUsage:setfacl [  -BKNDRLP] {-m|-m|-x|-x ...} file ... - m,--modify=acl modify the current ACL (s) of file (s) -M,--modify-file=file read ACL entries to modify fromfile-X,--remove=acl remove entries from the ACL (s) of file (s)-X,--remove-file=file read ACL entries to remove fromfile-B,--remove-All Remove the extended ACL entries-K,--remove-defaultRemove thedefaultACL--Set=aclSetthe ACL of file (s), replacing the current ACL--Set-file=file read ACL entries toSet  fromfile--mask Dorecalculate the effective rights mask-N,--no-mask Don'T recalculate the effective rights mask-D,--default operations apply to the default ACL-R,--recursive recurse into subdirectories-L,--logical logical Walk, follow symbolic links-P,--physical physical Walk, DoNot follow symbolic links--restore=file Restore ACLs (inverse of ' getfacl-r')--test test mode (ACLs is not modified)-V,--version print version and Exit-H,--help ThisHelp text

Linux Special File control permissions Facl

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.