From owner-freebsd-questions@FreeBSD.ORG Sat Oct 4 07:36:52 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 054D516A4BF for ; Sat, 4 Oct 2003 07:36:52 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 669284400B for ; Sat, 4 Oct 2003 07:36:47 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h94Eac9E016015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Oct 2003 15:36:43 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h94EabPj016014; Sat, 4 Oct 2003 15:36:37 +0100 (BST) (envelope-from matthew) Date: Sat, 4 Oct 2003 15:36:37 +0100 From: Matthew Seaman To: srenna@vdbmusic.com Message-ID: <20031004143637.GA15799@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , srenna@vdbmusic.com, freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: pkg_info +COMMENTS problem 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: Sat, 04 Oct 2003 14:36:52 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 04, 2003 at 09:00:55AM -0400, srenna@vdbmusic.com wrote: > Hello, >=20 > I'm having a problem. Whenever I run pkg_info with > whatever switches, I receive this at the top of the read > out, any ideas? >=20 > pkg_info: show_file: can't open '+COMMENT' for reading Somewhere under /var/db/pkg you have a +COMMENT file which isn't readable by your UID. That's not correct -- all of the files under /var/db/pkg should be readable by all. That is mode 644 for general files or mode 755 for directories and executables. All should be owned by root:wheel as well. Except for +MTREE_DIRS files which seem to be mode 444 for some odd reason. Try this (as root): # cd /var/db/pkg # chown -R root:wheel . # chmod -R a+rX,go-w . # chmod 444 */+MTREE_DIRS Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/ftr1dtESqEQa7a0RAo5oAJ90eYifliLloktf2VLtLTwJ9A4zqACdFL35 i82vqeNoFWr28HPzvvIGgwk= =c6yR -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--