Bug 1228693

Summary: dnf config-manager --add-repo sets permission to 600
Product: [Fedora] Fedora Reporter: kealthou
Component: dnf-plugins-coreAssignee: Michael Mráka <mmraka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, mmraka, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-0.1.9-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-27 22:32:57 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 kealthou 2015-06-05 13:05:23 UTC
Description of problem:
When dnf config-manager --add-repo saves a repository, the repo file's permission is set to 600. The permission should be 644 so that non-privileged users can use the repository. 

Version-Release number of selected component (if applicable):
dnf-plugins-core-0.1.8-1.fc22.noarch

How reproducible:
Always.

Steps to Reproduce:
1. sudo dnf config-manager --add-repo https://repos.fedorapeople.org/repos/abrt/abrt/fedora-abrt.repo
2. dnf list abrt

Actual results:
Warning: failed loading '/etc/yum.repos.d/fedora-abrt.repo', skipping.
Last metadata expiration check performed 0:00:08 ago on Fri Jun  5 22:01:29 2015.
Installed Packages
abrt.i686             2.5.1-3.fc22                    @System

Expected results:
Last metadata expiration check performed 0:00:35 ago on Fri Jun  5 22:01:29 2015.
Installed Packages
abrt.i686             2.5.1-3.fc22                    @System
Available Packages
abrt.i686             2.5.1.88.gfb18.dirty-1.fc22     fedora-abrt

Comment 1 Michael Mráka 2015-06-08 14:21:57 UTC
Fixed in https://github.com/rpm-software-management/dnf-plugins-core/pull/97

Comment 2 Fedora Update System 2015-06-24 12:08:46 UTC
dnf-plugins-core-0.1.9-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.9-1.fc22

Comment 3 Fedora Update System 2015-06-25 08:22:07 UTC
Package dnf-plugins-core-0.1.9-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.9-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10706/dnf-plugins-core-0.1.9-1.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-06-27 22:32:57 UTC
dnf-plugins-core-0.1.9-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.