Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use last ZFS (ZFS for Linux) on the CentOS 6. Create successfully pool, all working fine. But i have one question.

How i can set ACL for ZFS folder/file? GNU ls, chmod, and other coreutils not support(?) it.

On the Solaris/OpenSolaris/OpenIndiana/Nexenta i use

/usr/bin/chmod \ A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,everyone@:rwxpdDaARWcCos:fd-----:deny /ZFS/FOLDER/

What i must use for CentOS linux?

share|improve this question
up vote 1 down vote accepted

You can't do this for now. This is stated in the admin guide:

Currently, ACLs are not functioning in ZFS on Linux as of 0.6.0-rc13.

share|improve this answer

As of ZFS on Linux version 0.6.3, ACLs are now supported.

To enable them, you must set the acltype dataset property to the value posixacl, e.g.:

zfs set acltype=posixacl tank/home

If you haven't already, you should also set xattr to sa:

zfs set xattr=sa tank

POSIX ACLs are stored as extended attributes. Unfortunately, the standard way of storing extended attributes can cause serious performance hits on Linux, so you really need the "system attribute" storage method.

share|improve this answer

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.