acl access control listadd
2009-08-22 07:49
453 查看
grant /data without change previouse permission
setfacl -m u:xing:rwx /data
check by getfacl /data
# add sticky bit to ensure only the owner can remove the files
chmod o+t /data
#account expires on Feb 11 2010
usermod -e "11 Feb 2010" xing
chage -l xing
#root passwd never expires
chage -E "never" root
# make secondary belong to sysadm group
usermod -G sysadm xing
#user eric should be able to write on Document root directory website.
vi /etc/fstab
/dev/vg0/lv0 /var ext3 defaults,acl 1 1
mount -o remount /var
setfacl -m u:eric:rwx /var/www/example
# effective rights mask that should equal or exceed the user ACL
setfacl -m mask:rwx /var/www/example
getfacl /var/www/example to check
setfacl -m u:eric:rwx /var/www/example/pass
need to point to a file rather than directory
#
本文出自 “学习笔记” 博客,请务必保留此出处http://johnnyxing.blog.51cto.com/855065/194543
setfacl -m u:xing:rwx /data
check by getfacl /data
# add sticky bit to ensure only the owner can remove the files
chmod o+t /data
#account expires on Feb 11 2010
usermod -e "11 Feb 2010" xing
chage -l xing
#root passwd never expires
chage -E "never" root
# make secondary belong to sysadm group
usermod -G sysadm xing
#user eric should be able to write on Document root directory website.
vi /etc/fstab
/dev/vg0/lv0 /var ext3 defaults,acl 1 1
mount -o remount /var
setfacl -m u:eric:rwx /var/www/example
# effective rights mask that should equal or exceed the user ACL
setfacl -m mask:rwx /var/www/example
getfacl /var/www/example to check
setfacl -m u:eric:rwx /var/www/example/pass
need to point to a file rather than directory
#
本文出自 “学习笔记” 博客,请务必保留此出处http://johnnyxing.blog.51cto.com/855065/194543
相关文章推荐
- ORA-24247: network access denied by access control list (ACL)
- oracle 发送邮件(job,ORA-24247: network access denied by access control list (ACL))
- ZooKeeper 笔记(5) ACL(Access Control List)访问控制列表
- Oracle ACL(Access Control List)
- Linux具体权限规划之ACL(Access Control List)
- windows访问控制列表 --ACL(Access Control List)
- Video 28-29 第十四章 IP访问控制列表 IP Access Control List(ACL)
- ACL管理:Access Control List
- Zookeeper - ACL(Access Control List)
- Acl(Access Control List)访问控制列表
- ORA-24247:network access denied by access control list (ACL) 的处理方法
- Windows Azure Virtual Network (10) 使用Azure Access Control List(ACL)设置客户端访问权限
- ACL(Access Control List)访问控制列表(一)
- 如何在.net程序中访问 ACL(Access Control List)
- 访问控制列表(Access Control List,ACL)
- Linux的新权限机制——ACL(Access Control List)
- ORA-24247: network access denied by access control list (ACL)
- ACL(Access Control List)、特殊权限
- Oracle ACL(Access Control List)