weblog d’un abbe

20070521

ACLs supported by ext3 filesystem.

Filed under: Research — abbe @ 2215

Just found out that ext3 filesystem supports ACLs. In order to enable just add acl mount option while mounting. e.g. Following is my ACLed /etc/fstab:

LABEL=/                 /                   ext3    defaults,acl    1 1 
LABEL=/boot             /boot               ext3    defaults,acl    1 2
devpts                  /dev/pts            devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm            tmpfs   defaults        0 0
LABEL=/home             /home               ext3    defaults,acl    1 2
proc                    /proc               proc    defaults        0 0
sysfs                   /sys                sysfs   defaults        0 0
/dev/sda7               swap                swap    defaults        0 0
/dev/sda2               /mnt/0              vfat    noauto,user,rw  0 0 

Not only there are CLI tools for managing ACLs but also GUI. Following is the KDE File Properties dialog box when ACLs are enabled

POSIX Filesystem ACLs in KDE
Click on Advanced Permissions button.
POSIX Filesystem ACLs in KDE
Here you can set ACL for a file. The CLI commands are getfacl and setfacl.

[wahjava@chatteau Desktop]$ getfacl Photos/
# file: Photos
# owner: wahjava
# group: wahjava
user::rwx
group::r-x
mask::r-x
other::---
[wahjava@chatteau Desktop]$ setfacl -nm g:toranon:rwx Photos/
[wahjava@chatteau Desktop]$ getfacl Photos/
# file: Photos
# owner: wahjava
# group: wahjava
user::rwx
group::r-x
group:toranon:rwx               #effective:r-x
mask::r-x
other::---

For usage of these commands, RTFM. Anyways happy ACLing :)

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Blog at WordPress.com.

%d bloggers like this: