From owner-freebsd-questions Wed Nov 10 18:22:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from laurasia.com.au (lauras.lnk.telstra.net [139.130.93.142]) by hub.freebsd.org (Postfix) with ESMTP id E460A15413 for ; Wed, 10 Nov 1999 18:22:06 -0800 (PST) (envelope-from mike@laurasia.com.au) Received: (from mike@localhost) by laurasia.com.au (8.9.1a/8.9.1) id KAA25009; Thu, 11 Nov 1999 10:37:02 +0800 (WST) From: Michael Kennett Message-Id: <199911110237.KAA25009@laurasia.com.au> Subject: Re: Testing file permissions In-Reply-To: from "keith@mail.telestream.com" at "Nov 10, 99 11:45:29 am" To: keith@mail.telestream.com Date: Thu, 11 Nov 1999 10:37:01 +0800 (WST) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Keith, Thank you for your suggestions. > ls -l|awk '{print $3 $4}' > > will get you the ownership to be able to test it. > > ls -l|awk '{print $1}' > > will nab the perms > > Or am I being an idiot and still not understanding what it is you are > trying to do. :) No - not at all! I'm making a mountain out of a mole-hill :-) I had a private email from Juha Nurmela suggesting that I have a look at the mtree (1) command -- indeed, it solves my problem. Having read the answer, I can now state clearly what my problem was (!): To compare a file hierarchy against a specification of permissions and ownership. The `objection' that I had to using the Unix text tools and small command languages was it that it seemed to be a heavy-weight solution to a tiny problem. Thank you again for your suggestions. I appreciate the effort you've put into helping me. Mike Kennett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message