Skip to content
Advertisement

Unable to yum install in fedora even as root user

Getting the error Error: This command has to be run under the root user. when I try to install in Fedora as root user. Tried in different ways:

JavaScript

Is there any security setting that is causing this? I am trying all of the above commands by remotely sshing to the machine.

Advertisement

Answer

Your root user seems to be corrupted. If user group of root is assigned something out of root (or defined groups in visudo), it’ll not perform.

This will solve your problem since you’ll be setting user root to group root.

JavaScript

after entering this, logout and login.

Advertisement