From owner-freebsd-questions@FreeBSD.ORG Sun Oct 22 12:27:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AAAAF16A403 for ; Sun, 22 Oct 2006 12:27:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08EA743D5F for ; Sun, 22 Oct 2006 12:27:08 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 8A9DF46C55; Sun, 22 Oct 2006 08:27:08 -0400 (EDT) Date: Sun, 22 Oct 2006 13:27:08 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Atom Powers In-Reply-To: Message-ID: <20061022132628.K60062@fledge.watson.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: David Stanford , FreeBSD Mailing List Subject: Re: setfacl(1) Recursively? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Oct 2006 12:27:09 -0000 On Sat, 21 Oct 2006, Atom Powers wrote: > On 10/21/06, David Stanford wrote: >> I'm simply trying to set ACLs on a few directories but don't see an option >> to recursively apply this to the whole directory's contents. Does applying >> the ACL to a directory inherently apply it to all other files and folders >> within the directory? I've browsed the man page and handbook but can't find >> the info. Thanks. > > Hmm, I don't see a recursive option either. You should be able to set ACL on > files in a direcotry with `setfacl -m *`, and pipe that through 'find > -type:d` and xargs to do an entire directory tree. Patches to add a recursive option to setfacl would be most appreciated. If you (or someone else reading this) does work on it, make sure to implement the standard set of recursion variations (symlinks, etc). Thanks, Robert N M Watson Computer Laboratory University of Cambridge