Date: Sat, 4 Oct 2003 15:36:37 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: srenna@vdbmusic.com Cc: freebsd-questions@freebsd.org Subject: Re: pkg_info +COMMENTS problem Message-ID: <20031004143637.GA15799@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <web-57934087@atlantech.net> References: <web-57934087@atlantech.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/ftr1dtESqEQa7a0RAo5oAJ90eYifliLloktf2VLtLTwJ9A4zqACdFL35
i82vqeNoFWr28HPzvvIGgwk=
=c6yR
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031004143637.GA15799>
