setfacl -d

Hervé Kergourlay herve.kergourlay at atempo.com
Mon May 23 11:57:05 GMT 2005


Clive Lin a écrit :

>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
>  
>

thanks

it's effectively working
but it's a very complex method, how can the standard user knows that ?

now I've discovered another problem with the API acl_ser_file

with a valid path, a valid acl parameter and a 0 type (ACCESS), I've the 
error code 22 (EINVAL) when setting tha following acls on a file

"user::rw-\nuser:froupie:r-x              # effective: 
r--\ngroup::r-x            # effective: r--\nmask::r--\nother::r--\n"

is it normal ?
hervé





More information about the freebsd-fs mailing list