Bug #35366
closeddnf can't load foreman-protector.py as a regular user
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2118252
Description of problem:
$ dnf search lol
Failed loading plugin "foreman-protector": [Errno 13] Permission denied: '/usr/lib/python3.6/site-packages/dnf-plugins/foreman-protector.py'
…
(the rest of the execution works fine, but the warning is rather useless)
Fixing this, you get:
$ dnf search lol
Last metadata expiration check: 0:07:59 ago on Mon 15 Aug 2022 08:14:13 AM UTC.
Error: Incorrect plugin configuration!
and only after fixing the config perms, you get:
$ dnf search lol
Last metadata expiration check: 0:09:20 ago on Mon 15 Aug 2022 08:14:13 AM UTC.
No matches found.
Version-Release number of selected component (if applicable):
6.11
How reproducible:
100%
Steps to Reproduce:
1. dnf search foreman
2.
3.
Actual results:
warnings
Expected results:
no warnings
Additional info: