5.3-ACL-访问控制
ls -l /test.txt
chmod 644 /test.txt
# 查看访问控制
getfacl /test.txt
# 原本不变的情况 添加例外
useradd -m -s /bin/bash acl-tom
# 添加访问控制
setfacl -m acl-tom:rwx /test.txt
getfacl /test.txt
# 测试
su - acl-tom
cat /test.txt
echo ss >> /test.txt
exit
# 移除访问控制
setfacl -x acl-tom /test.txt
getfacl /test.txt
ls -l /test.txt
# 测试2
su - acl-tom
...