setfacl解释
setfacl:設(shè)置文件訪問控制列表,針對單獨文件,設(shè)置單獨用戶權(quán)限
 用法: setfacl -參數(shù) 用戶權(quán)限 文件
 參數(shù):-m, --modify=acl 更改文件的訪問控制列表
 -M, --modify-file=file 從文件讀取訪問控制列表條目更改
 -x, --remove=acl 根據(jù)文件中訪問控制列表移除條目
 -X, --remove-file=file 從文件讀取訪問控制列表條目并刪除
 -b, --remove-all 刪除所有擴展訪問控制列表條目
 -k, --remove-default 移除默認訪問控制列表
 –set=acl 設(shè)定替換當前的文件訪問控制列表
 –set-file=file 從文件中讀取訪問控制列表條目設(shè)定
 –mask 重新計算有效權(quán)限掩碼
 -n, --no-mask 不重新計算有效權(quán)限掩碼
 -d, --default 應(yīng)用到默認訪問控制列表的操作
 -R, --recursive 遞歸操作子目錄
 -L, --logical 依照系統(tǒng)邏輯,跟隨符號鏈接
 -P, --physical 依照自然邏輯,不跟隨符號鏈接
 –restore=file 恢復(fù)訪問控制列表,和“getfacl -R”作用相反
 –test 測試模式,并不真正修改訪問控制列表屬性
 -v, --version 顯示版本并退出
 -h, --help 顯示本幫助信
 getfacl:獲得文件acl詳細信息
 用法:getfacl 參數(shù) 文件
 參數(shù): -a, --access display the file access control list only
 -d, --default display the default access control list only
 -c, --omit-header do not display the comment header
 -e, --all-effective print all effective rights
 -E, --no-effective print no effective rights
 -s, --skip-base skip files that only have the base entries
 -R, --recursive recurse into subdirectories
 -L, --logical logical walk, follow symbolic links
 -P, --physical physical walk, do not follow symbolic links
 -t, --tabular use tabular output format
 -n, --numeric print numeric user/group identifiers
 -p, --absolute-names don’t strip leading ‘/’ in pathnames
 -v, --version print version and exit
 -h, --help this help text
總結(jié)
 
                            
                        - 上一篇: 霸气网名大全108个
- 下一篇: MySQL数据处理之增删改,MySQL8
