Basically, I have the opposite problem of this guy. I would like my updates to be installed in a transparent way : I'm tired of entering my password every time.

I'm running on Red Hat (6.2 to be precise).

I saw a script somewhere saying that you need to edit a line containing "admin" in visudo, but I don't have that line. It was meant for Ubuntu, maybe that's the reason why...


3 Answers 3


I believe the solution is to modify the local PolicyKit definitions. Create a file called, say, /etc/polkit-1/localauthority/50-local.d/allowuserupdate.pkla

[Allow User Updates]

If you only want your user, you could change Identity=YOURUSERNAME (replace YOURUSERID with your username).


Allow user bob and group update-users to run yum without password.

bob, %update-users ALL= NOPASSWD: /sbin/yum

Only allow bob such access

bob, %update-users ALL= NOPASSWD: /sbin/yum

Note: I don't have a RedHat box to verify the location of yum. Please tell me if this location is invalid.

  • PackageKit, not yum. Commented Mar 24, 2012 at 4:59
  • I'm confused where the user stated he or she is using PackageKit vs yum. Last time I used RH (10 years ago), they were using yum. If PackageKit is being used, then the user should simply replace PackageKit binary with suggested yum binary in the above.
    – earthmeLon
    Commented Mar 24, 2012 at 5:06
  • No, because PackageKit uses PolicyKit. Commented Mar 24, 2012 at 5:08
  • Personnaly, I'm not using anything. I'm ready to use whatever will do the job. Commented Mar 26, 2012 at 12:59

Have you tried yum -y update?

  • Why would you run yum when using PackageKit? Commented Mar 21, 2012 at 21:40
  • @IgnacioVazquez-Abrams because it is the way the service yum-cron used to do it.
    – Nils
    Commented Mar 21, 2012 at 21:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .