test1登录系统,执行命令: [test1@mail test1]# cd /fs1 [test1@mail fs1]# echo "Create by test1" > test1.txt [test1@mail fs1]# chmod go-r test1.txt [test1@mail fs1]# ll test1.txt -rw------- 1 test1 test1 17 Jul 14 22:11 test1.txt
而如下操作则可以让除了test1有读写的权限外其他人没有读写test1.txt的权限(root除外),先用test2 登录系统后执行以下命令: [test2@mail test2]# cd /fs1 [test2@mail fs1]# cat test1.txt cat : test1.txt Permission denied
接着用test1登录系统,执行如下命令: [test1@mail fs1]# setfacl -m u:test2:rw test1.txt
这样就修改权限允许test2 有这个文件的读写权限。再看一下它的文件属性的变化: [te 页码:[1] [2] [3] [4] [5] [6] [7] 第4页、共7页 |