"Automatic" sudo in console if root required

asked 2015-08-13 00:22:46 -0500

jdm gravatar image

With a fresh Fedora 22 install, when I entered a command that required root in a terminal without using sudo, I got a prompt for my password.

Because I am running in a VM and wanted to keep the disk usage down, I removed a lot of packages I didn't need, including the GUI. Most things work now as I want them to, but this "automatic sudo" feature stopped working. When I now do dnf install something I get Error: This command has to be run under the root user. instead of a password prompt.

What do I have to install / change to get back this automatic sudo feature?

edit retag flag offensive close merge delete

Comments

On a stock Workstation or Server install, that doesn't happen … did you install some kind of special Spin or alternative release?

BRPocock gravatar imageBRPocock ( 2015-08-13 15:20:51 -0500 )edit

run 'dnf history' to view the list of transactions and 'dnf history info <id>' to find out what you removed. It may have an obvious looking name.

baggypants gravatar imagebaggypants ( 2015-08-21 18:40:14 -0500 )edit