Date: Sun, 22 May 2005 17:29:27 +0800 From: Clive Lin <clive@tongi.org> To: =?iso-8859-1?Q?Herv=E9?= Kergourlay <herve.kergourlay@atempo.com> Cc: freebsd-fs@freebsd.org Subject: Re: setfacl -d Message-ID: <20050522092926.GA1042@tongi.org> In-Reply-To: <42834CF9.6060301@atempo.com> References: <427F491C.4090501@club-internet.fr> <427F9404.8060509@samsco.org> <42834982.40302@club-internet.fr> <42834CF9.6060301@atempo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 12, 2005 at 02:32:57PM +0200, Herv=E9 Kergourlay wrote: > how to set a default ACl on directory on FreeBSD 5.3 >=20 > the setfacl -d failed with the following message >=20 > 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 --=20 Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050522092926.GA1042>