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

最新文章

  1. 前端开发与SEO
  2. min-height
  3. iOS 七牛云上传并获取图片----【客户端】
  4. Python time clock()方法
  5. 我想要个pc和手机共有的客户端,就像百度云(iBarn网盘好用)
  6. Multithreading: How to Use the Synchronization Classes
  7. android一些常用的代码1(收藏)
  8. Akka入门实例
  9. 解决mysql、vsftp远程连接速度慢的问题
  10. 个人Source Insight使用设置笔记
  11. C++_day8pm_多态
  12. [ 10.05 ]CF每日一题系列—— 962B贪心和思维?
  13. Win10下python不同版本同时安装并解决pip共存问题
  14. 三问助你Fundebug
  15. pip 升级
  16. C#模板引擎NVelocity实战项目演练
  17. ios-静态库,动态库,framework浅析(一)
  18. C语言动态链表数据结构
  19. 由web项目中上传图片所引出的路径问题
  20. 使用FractionSlider生成的视差幻灯效果原型

热门文章

  1. print number
  2. Basic 001 Bob
  3. Windows 查找txt后缀 文件复制
  4. Fastjson反序列化漏洞研究
  5. P3396 哈希冲突
  6. hash(散列函数)
  7. important覆盖行内样式
  8. python封装configparser模块获取conf.ini值(优化版)
  9. vs2013、vs2015使用.net4.5框架智能提示英文转成中文
  10. c#串口编程(转)