|
设置ACL权限
ACL常常针对个别用户来进行设置,下面是多个不同的例子:
例如需要创建test1、test2、test3三个用户,可以先用root身份登录系统,然后执行以下命令分别创建三个用户名和密码:
[root@mail root]#adduser test1 [root@mail root]#adduser test2 [root@mail root]#adduser test3 [root@mail root]#passwd test1 [root@mail root]#passwd test2 [root@mail root]#passwd test3
然后mount一个ext3文件到目录/fs1: [root@mail root]#mount -t ext3 -o acl /dev/sda1 /fs1
再将test1 建立的文件设置读写的权限给test2 : [root@mail root]#chmod -R 777 /fs1
让所有的用户都能增加文件到目录的权限:
先用 页码:[1] [2] [3] [4] [5] [6] [7] 第3页、共7页 |