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