一、Linux文件属性和权限spa
二、Linux重定向3d
三、Linux文件查找blog
四、Linux压缩打包test
五、课堂做业打包
权限相关做业:file
题目
建立用户carol,ivy,jenny,kevin,alice
建立/test目录,并在目录下建立testfile1,testfile2,testfile3权限
要求:im
1) 全部用户可以查看testfile1的内容。d3
usermod -aG testgroup carol
usermod -aG testgroup ivy
usermod -aG testgroup jenny
usermod -aG testgroup jenny
usermod -aG testgroup alice
chown :testgroup /test/testfiel1
chmod g+r /test/testfiel1重定向
2) carol、ivy、jenny可以修改testfile1
setfacl -m u:carol:rw /test/testfiel1
setfacl -m u:ivy:rw /test/testfiel1
setfacl -m u:jenny:rw /test/testfiel1
3) kevin、alice可以修改testfile2
setfacl -m u:kevin:rw /test/testfiel2
setfacl -m u:alice:rw /test/testfiel2
4) kevin、alice可以管理目录下的建立、删除文件操做
setfacl -m u:kevin:rw /test
setfacl -m u:alice:rw /test
5) carol、ivy、jenny不可以删除、也不能建立文件
setfacl -x u:carol /test
setfacl -x u:ivy /test
setfacl -x u:jenny /test
6) testfile3 仅容许追加内容,不容许修改
chattr +a /test/testfiel3