Bug 1559303 - Permission denied `dnf info` as normal user
Summary: Permission denied `dnf info` as normal user
Keywords:
Status: CLOSED DUPLICATE of bug 1554995
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-22 08:57 UTC by Ben Kircher
Modified: 2018-03-26 11:30 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-22 09:01:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Kircher 2018-03-22 08:57:16 UTC
Description of problem:
$ dnf info botan2
Fedora 28 - x86_64 - Test Updates                                                                     995 kB/s | 8.2 MB     00:08    
Fedora 28 - x86_64 - Updates                                                                          2.9 kB/s | 257  B     00:00    
Fedora 28 - x86_64                                                                                    1.0 MB/s |  60 MB     01:00    
Last metadata expiration check: 0:00:00 ago on Thu 22 Mar 2018 09:42:22 AM CET.
[Errno 13] Permission denied: '/etc/dnf/modules.d'
exit 1
~> ls -hl /etc/dnf/    
total 12K
-rw-r--r--. 1 root root   72 Feb 12 08:39 dnf.conf
drwxr-xr-x. 2 root root 4.0K Feb 12 16:04 plugins
drwxr-xr-x. 2 root root 4.0K Feb 12 16:04 protected.d


Version-Release number of selected component (if applicable):
~> rpm -qa|grep dnf
dnf-conf-2.7.5-8.fc28.noarch
dnf-yum-2.7.5-8.fc28.noarch
dnf-plugins-core-2.1.5-4.fc28.noarch
dnf-2.7.5-8.fc28.noarch
python2-dnf-2.7.5-8.fc28.noarch
python3-dnf-plugin-system-upgrade-2.0.5-3.fc28.noarch
python3-dnf-plugins-core-2.1.5-4.fc28.noarch
python3-dnf-2.7.5-8.fc28.noarch
libdnf-0.11.1-3.fc28.x86_64
python3-dnf-plugins-extras-common-2.0.5-3.fc28.noarch

How reproducible:
Easy. Upgrade from F27 to F28 and run `dnf info` as normal user.

Steps to Reproduce:
1. Upgrade to F28
2. Run dnf info as normal user

Actual results:
[Errno 13] Permission denied: '/etc/dnf/modules.d'

Expected results:
One can use dnf as normal user without error.

Additional info:
After running sudo dnf info or sudo dnf check-update /etc/dnf/modules.d exists.

Comment 1 Martin Hatina 2018-03-22 09:01:41 UTC

*** This bug has been marked as a duplicate of bug 1554995 ***

Comment 2 Ben Kircher 2018-03-22 09:49:17 UTC
I'm not authorized to access bug #1554995. Is there a way to at least follow its progress?

Comment 3 Ben Kircher 2018-03-26 09:00:54 UTC
Hello?

Comment 4 Martin Hatina 2018-03-26 10:56:07 UTC
I have added you to CC of #1554995.

Comment 5 Ben Kircher 2018-03-26 11:30:25 UTC
Thanks!


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