Red Hat Bugzilla – Bug 973510
should give root user required error before resolving dependencies
Last modified: 2013-06-18 03:56:44 EDT
Description of problem:
When yum used as a normal user
$ yum update
Loaded plugins: langpacks, refresh-packagekit
You need to be root to perform this command.
But, when dnf used as a normal user
$ dnf update --enablerepo=updates-testing
Setting up Upgrade Process
--> Starting dependency resolution
Is this ok [y/N]: y
Unable to initialize yumdb history: [Errno 13] Permission denied: '//var/lib/dnf'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
dnf command is not checking for admin user status and performs Resolving Dependencies
dnf should check if the user requesting is non-root and then accordingly error and quit
Yep, this got merged by mistake:
Author: Ales Kozumplik <email@example.com>
Date: Tue Feb 28 10:06:39 2012 +0100
we are experimenting so do not check for root
no, the :nomerge comment just means this shouldn't be merged back to yum.
Parag, not checking for root is on purpose, see bug 910133 and the discussion there.
*** This bug has been marked as a duplicate of bug 910133 ***