From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 05:18:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46C2B37B401 for ; Sun, 3 Aug 2003 05:18:50 -0700 (PDT) Received: from home.mnet.bg (home.mnet.bg [193.110.223.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 275B843F75 for ; Sun, 3 Aug 2003 05:18:48 -0700 (PDT) (envelope-from dpenev@mnet.bg) Received: from localhost (home [127.0.0.1]) by home.mnet.bg (Postfix) with ESMTP id 7B2CC3B31E; Sun, 3 Aug 2003 15:18:42 +0300 (EEST) Received: from home.mnet.bg ([127.0.0.1]) by localhost (home [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30529-01-2; Sun, 3 Aug 2003 15:18:42 +0300 (EEST) Received: from venus.dpsca.bg (ip220-81.mnet.bg [193.110.220.81]) by home.mnet.bg (Postfix) with ESMTP id D8B7C3B338; Sun, 3 Aug 2003 13:15:49 +0300 (EEST) Received: from earth.dpsca.bg (earth.dpsca.bg [fec0::1:1]) by venus.dpsca.bg (8.11.3nb1/8.11.3) with ESMTP id h73AATZ00349; Sun, 3 Aug 2003 13:10:29 +0300 (EEST) Received: (from dpenev@localhost) by earth.dpsca.bg (8.12.9/8.12.9/Submit) id h73AF0s7001392; Sun, 3 Aug 2003 13:15:00 +0300 (EEST) (envelope-from dpenev) Date: Sun, 3 Aug 2003 13:15:00 +0300 From: Dancho Penev To: Grzegorz Czaplinski Message-ID: <20030803101500.GA528@earth.dpsca.bg> Mail-Followup-To: Grzegorz Czaplinski , freebsd-questions@FreeBSD.ORG References: <20030802163724.GE3090@prioris.mini.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20030802163724.GE3090@prioris.mini.pw.edu.pl> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new-20030616 at mnet.bg cc: freebsd-questions@FreeBSD.ORG Subject: Re: Default ACL entries. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2003 12:18:50 -0000 On Sat, Aug 02, 2003 at 06:37:24PM +0200, Grzegorz Czaplinski wrote: >Date: Sat, 2 Aug 2003 18:37:24 +0200 >From: Grzegorz Czaplinski >To: freebsd-questions@freebsd.org >Subject: Default ACL entries. > >Hi there! >Does anyone know how to set default ACL entries? >Any examples how to use -d, -k, -X switches with setfacl? # setfacl -dm u::rwx,u:nobody:rwx,m::rwx,g::rx,o::rx /foo There are three required ACL entries: u::,g::,o::, that unlike files acls doesn't exist when you set default acl for first time, so don't forget to set them. (BTW I have patch for setfacl somewhere that check default acl for missing entries) # setfacl -k /foo This will remove default acl for "foo" directory. # setfacl -dX acls /foo Where "acls" file contains entries like these: u:nobody:rwx g:somegroup:rx > >This is all different to Solaris... ;) >Thanks, > gregory >-- >Grzegorz Czaplinski >"The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/ > Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F --=20 Dancho Penev