Linux-day2-pdf课件

1、Linux文件属性和权限

 

2、Linux重定向

 

 

3、Linux文件查找

 

4、Linux压缩打包

 5、课堂作业

权限相关作业:

题目
创建用户carol,ivy,jenny,kevin,alice
创建/test目录,并在目录下创建testfile1,testfile2,testfile3

 

要求:

1) 所有用户能够查看testfile1的内容。

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

转载于:https://www.cnblogs.com/lz-tester/p/10756791.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值