Bug 1058224

Summary: the system cache should be world readable by default
Product: [Fedora] Fedora Reporter: Elad Alfassa <elad>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 20CC: akozumpl, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-0.4.17-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-08 03:35:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.
https://admin.fedoraproject.org/updates/dnf-0.4.17-1.fc20

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:
https://admin.fedoraproject.org/updates/FEDORA-2014-3465/dnf-0.4.17-1.fc20
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

works

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.