setfacl -d

Clive Lin clive at tongi.org
Sun May 22 09:30:10 GMT 2005


On Thu, May 12, 2005 at 02:32:57PM +0200, Hervé Kergourlay wrote:
> how to set a default ACl on directory on FreeBSD 5.3
> 
> the setfacl -d failed with the following message
> 
> fiobsd.hky(290) [dev->acl] setfacl -d -m u::rw- dir1
> setfacl: acl_calc_mask() failed: Invalid argument
> setfacl: failed to set ACL mask on dir1

Hi,

    For freshly created directory, you have to do 'setfacl -m ...' first.

$ mkdir aclTest
$ setfacl -d -m u:clive:rwx aclTest
setfacl: acl_calc_mask() failed: Invalid argument
setfacl: failed to set ACL mask on aclTest
$ setfacl -m u:clive:rwx aclTest
$ getfacl aclTest | setfacl -d -b -n -M - aclTest
$ getfacl -d aclTest|grep clive
user:clive:rwx

-- 
Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E


More information about the freebsd-fs mailing list