Description of problem:
Once the system is registered to Satellite 5 I am not able to use dnf as a regular user due to a following error.
Not root, Subscription Management repositories not updated
This system is not registered with Spacewalk server.
Spacewalk based repositories will be disabled.
[Errno 13] Permission denied: '/var/lib/dnf/_spacewalk.json'
It is reasonable that Spacewalk based repos are disabled but dnf should not fail.
Please forward it to dnf if it is a dnf issue.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. # rhnreg_ks ...
2. # useradd -m karel
3. # su - karel -c 'dnf repolist'
Fixed in spacewalk git by
1660552 - report and fail gracefully if not root
logger.warn() has been obsoleted
The bug has been addresses and released as a part of Red Hat Enterprise Linux 8 GA.