Redhat – ACL

Posted: February 26, 2010 in Redhat

This is the best site to understand ACL

http://www.vanemery.com/Linux/ACL/linux-acl.html

- First Mount the partition with ACL support
- vi /etc/fstab
- /dev/emcpowerb1 /backup ext3 defaults,acl 0 0
- mount -o remount /export
- Ckeck with mount command
- sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/emcpowerb1 on /backup type ext3 (rw,acl)

getfacl /

[root@gorgon Finance]# getfacl Planning
# file: Planning
# owner: root
# group: root
user::---
user:paulb:rwx
user:tomc:rwx
user:peterw:rwx
group::---
mask::rwx
other::---

- Set user level Permission
- setfacl -m u:paulb:rwx Planning
- Take out group and other permission
- setfacl -m u::---,g::---,o:--- Planning

Remove User from ACL

- setfacl -x u:USERNAME FOLDERNAME


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s