From owner-freebsd-fs@FreeBSD.ORG Mon May 23 11:57:05 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B359316A41C for ; Mon, 23 May 2005 11:57:05 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA94643D49 for ; Mon, 23 May 2005 11:57:04 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id C52A72FD47; Mon, 23 May 2005 13:57:00 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id B47702FD45; Mon, 23 May 2005 13:57:00 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 3BE5A1E3257; Mon, 23 May 2005 13:57:00 +0200 (CEST) Message-ID: <4291C50B.1090505@atempo.com> Date: Mon, 23 May 2005 13:56:59 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Clive Lin References: <427F491C.4090501@club-internet.fr> <427F9404.8060509@samsco.org> <42834982.40302@club-internet.fr> <42834CF9.6060301@atempo.com> <20050522092926.GA1042@tongi.org> In-Reply-To: <20050522092926.GA1042@tongi.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------070004090505050904090703 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: setfacl -d X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 11:57:05 -0000 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--