Version 4 (modified by icorreas@…, 2 years ago) (diff)

Name changed from Document/HowTo?/EnableACLs to Documentation/Community/HowTo/EnableACLs

How to enable ACLs

Using file system ACLs can be very handy for those shares where you have more than one group or user with write permissions. And different users or groups should be able to overwrite other's files.

We have a experimental packaging that adds support to ACLs. Run the following commands to install it:

wget http://launchpad.net/~juruen/+archive/ppa/+files/ebox-samba_1.4.3-0ubuntu1~ppa1~hard1~acl1_all.deb
sudo dpkg -i ebox-samba_1.4.3-0ubuntu1~ppa1~hard1~acl1_all.deb

In case you had previously installed ebox-samba you will need to modify /etc/fstab to support ACLs. Edit it and modify either your /home partition or your / (root) partition to add acl. It should look like this:

UUID=8bae891c-2846-4cc6-9367-fd676a8a5def /               ext3    relatime,errors=remount-ro,usrquota,grpquota,acl 0       1

Now you can either restart the machine or remount the partition with:

sudo mount -o remount,acl /

Now you can either create a new share or restart ebox-samba with:

sudo /etc/init.d/ebox samba restart

To check it's working run the following command that should show something like this:

billy@ubuntu:~$ sudo getfacl /home/samba/shares/share1
getfacl: Removing leading '/' from absolute path names
# file: home/samba/shares/share1
# owner: ebox
# group: __USERS__
user::rw-
user:user1:r-x
user:user2:rwx
user:user3:rwx
group::rwx
mask::rwx
other::---
default:user::rw-
default:user:user1:r-x
default:user:user2:rwx
default:user:user3:rwx
default:group::rwx
default:mask::rwx
default:other::--