Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2005 13:56:59 +0200
From:      =?ISO-8859-1?Q?Herv=E9_Kergourlay?= <herve.kergourlay@atempo.com>
To:        Clive Lin <clive@tongi.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: setfacl -d
Message-ID:  <4291C50B.1090505@atempo.com>
In-Reply-To: <20050522092926.GA1042@tongi.org>
References:  <427F491C.4090501@club-internet.fr>  <427F9404.8060509@samsco.org> <42834982.40302@club-internet.fr>  <42834CF9.6060301@atempo.com> <20050522092926.GA1042@tongi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070004090505050904090703
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

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é




--------------070004090505050904090703--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4291C50B.1090505>