一、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