From owner-freebsd-questions@FreeBSD.ORG Wed Mar 8 16:58:21 2006 Return-Path: X-Original-To: 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 3C94716A420 for ; Wed, 8 Mar 2006 16:58:21 +0000 (GMT) (envelope-from josh@tcbug.org) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9B7943D67 for ; Wed, 8 Mar 2006 16:58:20 +0000 (GMT) (envelope-from josh@tcbug.org) Received: from gimpy (c-24-118-173-219.hsd1.mn.comcast.net[24.118.173.219]) by comcast.net (rwcrmhc13) with ESMTP id <20060308165819m13001uoeqe>; Wed, 8 Mar 2006 16:58:19 +0000 From: Josh Paetzel To: questions@freebsd.org Date: Wed, 8 Mar 2006 10:58:09 -0600 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200603081058.10027.josh@tcbug.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Subject: Finding a file with wrong permissions 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: Wed, 08 Mar 2006 16:58:21 -0000 I managed to install a pkg that I created and somehow the file +COMMENT wasn't created in /var/db/pkg/portname. I touched +COMMENT in the correct directory because pkg_info was complaining about a missing +COMMENT. Some time has gone by and I have forgotten which port it is. Now pkg_info complains: pkg_info: show_file: can't open '+COMMENT' for reading I'm looking for a way to locate this file. #find /var/db/pkg -perm 644 -name +COMMENT | wc -l 378 #pkg_info | wc -l pkg_info: show_file: can't open '+COMMENT' for reading 379 I've looked through the manpage for find and can't find a 'not' modifier. Is there an easy way to find a file that doesn't have a specific permission. ie something like: #find /var/db/pkg -perm !644 -name +COMMENT -- Thanks, Josh Paetzel