Skip to content

Commit

Permalink
disabled hard check for root user
Browse files Browse the repository at this point in the history
  • Loading branch information
flixman committed Oct 26, 2024
1 parent 13ecc39 commit c70b4c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dnf/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,8 @@ def _process_demands(self):

if demands.root_user:
if not dnf.util.am_i_root():
raise dnf.exceptions.Error(
_('This command has to be run with superuser privileges '
'(under the root user on most systems).'))
logger.warning('In most cases, this command has to be run with superuser privileges '
'(usually under the root user)')

if demands.changelogs:
for repo in repos.iter_enabled():
Expand Down

0 comments on commit c70b4c8

Please sign in to comment.