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