From owner-freebsd-questions@FreeBSD.ORG Sat Oct 4 09:20:09 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 9B54D16A4C0 for ; Sat, 4 Oct 2003 09:20:09 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4FEA43F85 for ; Sat, 4 Oct 2003 09:20:06 -0700 (PDT) (envelope-from freebsduser@comcast.net) Received: from comcast.net (12-225-143-41.client.attbi.com[12.225.143.41]) by comcast.net (rwcrmhc11) with SMTP id <2003100416200501300lpjmve> (Authid: animotions); Sat, 4 Oct 2003 16:20:05 +0000 Message-ID: <3F7EF47E.3030807@comcast.net> Date: Sat, 04 Oct 2003 09:25:34 -0700 From: K Anderson User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: srenna@vdbmusic.com References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 16:20:09 -0000 srenna@vdbmusic.com wrote: > Gave that a shot, but still seeing the same problem > any other tips? > > > On Sat, 4 Oct 2003 15:36:37 +0100 > Matthew Seaman wrote: > >>On Sat, Oct 04, 2003 at 09:00:55AM -0400, >>srenna@vdbmusic.com wrote: >> >>>Hello, >>> >>>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? >>> >>>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 >> >>-- >>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 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Can you do it as user root? If not you might have a corrupt file or several corrupt files. Can you edit any of them and save them?