Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1058224 - the system cache should be world readable by default
Summary: the system cache should be world readable by default
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Honza Silhan
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-01-27 09:32 UTC by Elad Alfassa
Modified: 2014-03-08 03:35 UTC (History)
5 users (show)

Fixed In Version: dnf-0.4.17-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-03-08 03:35:15 UTC

Attachments (Terms of Use)

Description Elad Alfassa 2014-01-27 09:32:28 UTC
[elad@rincewind dnf]$ dnf grouplist --cacheonly
[Errno 13] Permission denied: '/var/cache/dnf/x86_64/20/fedora/repodata/gen'

Comment 1 Parag Nemade 2014-01-27 09:42:39 UTC
I think it needs a root user access.

Comment 2 Elad Alfassa 2014-01-27 09:44:03 UTC
That's silly. It's a read only command and I explicitly specified --cacheonly, which means "Don't download metadata, use existing cache".

Comment 3 Ales Kozumplik 2014-01-27 09:51:31 UTC
yes, it's what it does: it's trying to use the root cache, see the manual. the root cache is created with permissions given by root's umask. if you change the permissions on the root cahe to be readable by the user (safe) all should be fine.

Comment 4 Elad Alfassa 2014-01-27 09:54:35 UTC
Why is this the default?

Comment 5 Ales Kozumplik 2014-01-27 10:00:54 UTC
Hmm, actually I think you might be right, this should be world-readable, at least until somebody starts to complain. We'll take a look at this.

Comment 6 Honza Silhan 2014-02-27 15:31:49 UTC
System cache was readable by user. The problem was during decompression of xmls into root directory. Fixed in the upstream.

Comment 7 Fedora Update System 2014-03-05 12:57:14 UTC
dnf-0.4.17-1.fc20 has been submitted as an update for Fedora 20.

Comment 8 Fedora Update System 2014-03-06 08:13:54 UTC
Package dnf-0.4.17-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.17-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 9 Tim Lauridsen 2014-03-07 08:07:06 UTC
dnf grouplist --cacheonly
Error: This command has to be run under the root user.

dnf grouplist --cacheonly --noplugins


the initial problem is solved, but looks like the noroot plugin
has an issue in this case.

Comment 10 Fedora Update System 2014-03-08 03:35:15 UTC
dnf-0.4.17-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.