Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've installed ACL on my Ubuntu:

aptitude install acl

What is the next step ? /etc/fstab ?

  # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=54dd976c-b95d-4f44-b4f7-516107dbed85 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda2 during installation
    UUID=b03c5549-9b4a-444f-a1ff-6c1e3c767836 none            swap    sw              0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

Thank you

share|improve this question

2 Answers 2

ext4 ACL are not enabled by default (at least on a debian squeeze). So, your way is to add the acl option in your /etc/fstab

…
UUID=54dd976c-b95d-4f44-b4f7-516107dbed85 /               ext4    errors=remount-ro,acl ,0       1
…

… and to avoid a reboot, you can apply it immediatly :

# mount -oremount /

(can't believe it's not enabled by default…)

share|improve this answer

getfacl(1)

setfacl(1)

Some filesystems may need acl added to their mount options, but I believe most use it by default.

share|improve this answer
    
@Ignacio Vazquez-Abrams i have edited my question, please take a look at the fstab. Do I have to change something ? thank you –  Damiano Apr 26 '11 at 10:12
    
Some filesystems may need acl added to their mount options, but I believe most use it by default. –  Ignacio Vazquez-Abrams Apr 26 '11 at 10:14
    
@Ignacio Vazquez-Abrams ok perfect! last question... if I set permission to /home/test... also all the directory inside this will have the same permissions, right? –  Damiano Apr 26 '11 at 10:19
    
ACLs take effect per filesystem object, and setfacl is not recursive by default. –  Ignacio Vazquez-Abrams Apr 26 '11 at 10:20
    
OMG, if i have 300 directories inside i have to write 300 time setfacl? :-( –  Damiano Apr 26 '11 at 10:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.