文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>ACL配置

ACL配置

时间:2009-04-28  来源:viking550229962

1.查看是否启用ACL功能(例如sdb1)
# tune2fs -l /dev/sdb1 | grep acl

2.启用ACL功能
# vi /etc/fstab
LABEL=sdb1    /mnt/sdb1    ext3    defaults,acl

3.重新挂载分区
# mount -o remount,acl /mnt/sdb1

4.验证ACL功能是否启用
# mount
/dev/sdb1 on /mnt/sdb1 type ext3 (rw,acl)

5.创建文件
# touch test

6.设置访问控制权限
[root@redhat ~]# getfacl file
# file:file
# owner:root
# group:root
user::rw-
group::r--
other::r--
[root@redhat ~]# setfacl -m u:user1:rw file
[root@redhat ~]# getfacl file
# file:file
# owner:root
# group:root
user::rw-
user:user1:rw-
group::r--
other::r--
[root@redhat ~]# setfacl -m g:user1:rw file
[root@redhat ~]# getfacl file
# file:file
# owner:root
# group:root
user::rw-
user:user1:rw-
group::r--
group:user1:rw-
other::r--
[root@redhat ~]# setfacl -b file
[root@redhat ~]# getfacl file
# file:file
# owner:root
# group:root
user::rw-
group::r--
other::r--
相关阅读 更多 +
排行榜 更多 +
摧毁大厦游戏

摧毁大厦游戏

飞行射击 下载
合并动物城手游版

合并动物城手游版

休闲益智 下载
哈士奇大冒险

哈士奇大冒险

休闲益智 下载