Ask Your Question

Disable software installation without password - Fedora 28

asked 2018-07-31 08:46:30 -0500

markusm25 gravatar image

Users (in the wheel group) can install software in the gui without entering a password. how can I disable that, so that a password needs to be entered before installation?


edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2018-08-22 05:01:46 -0500

ElCanario gravatar image

I am a new Fedora user. I have been watching what you were saying.I think that that order you are talking about appears in /user/share/polkit-1/rules.d/org.freedesktop.packagekit.rules.

I hope this will help.

edit flag offensive delete link more


It's /usr, not /user.

More information about that in the PolicyKit documentation.

Anyway, this is the better answer than my one.

genodeftest gravatar imagegenodeftest ( 2018-08-23 08:09:56 -0500 )edit

Of course. It's /usr, not /user. Thanks for the correction.

ElCanario gravatar imageElCanario ( 2018-08-23 10:02:29 -0500 )edit

answered 2018-07-31 14:13:50 -0500

genodeftest gravatar image

updated 2018-08-23 08:10:37 -0500

Edit 3: @ElCanario's answer is providing a better solution.

Edit 2: Don't do this. See Florian's comment below.

Edit: This will remove the user from the wheel group, stopping updates without using a password. After that a reboot is required. Now the user should be able to still install software after being prompted his/her password, but I have not tested this. I am not sure you really want to remove yourself from group wheel.

A solution for removing the user from group wheel is being provided at StackExchange:

# gpasswd -d user group

in your example:

# gpasswd -d markusam wheel

If you are very careful, you may remove the username from the line starting with wheel:x: in /etc/group. Be sure to make a backup and not change anything else.

Edit: Removing the user from the wheel group may have other implications too. You may e.g. loose access to the system journal.

edit flag offensive delete link more



Hi. I think you misunderstand him. He asked how to make user (which is already existing in wheel group) to be asked for sudo password when try to install from software center while she/he still remain in wheel group

But you ask him, instead, to remove user from wheel group ! Isn't it ?

nokia808 gravatar imagenokia808 ( 2018-07-31 14:27:36 -0500 )edit


Since the user should still be in the sudoers file, he/she should still be able to install updates through sudo. I haven't checked that thoug, so I may be wrong.

genodeftest gravatar imagegenodeftest ( 2018-08-01 01:02:58 -0500 )edit

Dangerous solution. Make sure you have root access on the machine or another user with sudo access. Otherwise you loose „admin“ access and u may lock yourself out. Be careful and do the above only if you know what you’re doing.

florian gravatar imageflorian ( 2018-08-01 08:55:16 -0500 )edit

Question Tools


Asked: 2018-07-31 08:46:30 -0500

Seen: 196 times

Last updated: Aug 23 '18