st1@mail fs1]# ll -rw-rw-r--+ 1 test1 test1 10 Feb 16 13:52 test1.txt
会看到后面多了一个“+”,表示这个文件使用ACL的属性设置,再用命令getfacl来看ACL的文件属性设置: [test1@mail fs1]# getfacl test1.txt # file: test1.txt # owner: test1 # group: test1 user::rw- user:test2:rw- group::rw- mask::rw- other::r--
可以看到 test2 有权限读写这个文件。
我们再用test2登录系统执行以下命令,看看发生了什么? [test2@mail test2]# cd /fs1 [test2@mail fs1]# cat test1.txt Create by test1
原来test2可以读取test1.txt文件了。 [test2@mail fs1]# echo "Modify by test2" >> 页码:[1] [2] [3] [4] [5] [6] [7] 第5页、共7页 |