6

How to prevent Muon from asking a password when installing updates?

Adding user ALL=(ALL) NOPASSWD: ALL to sudoers does not help. sudo apt-get upgrade works without a password, but Muon is still asking for it.

It is very annoying to enter password every day to install updates.

(Kubuntu 12.04)

Peachy
  • 7,235
  • 10
  • 40
  • 47
Predictor
  • 160
  • 6

2 Answers2

1

try with configuring your crontab file, to make updates automatically, as root user, example:

in terminal write (as root loged user):

nano /etc/crontab

Then, for example, if you want updates every single day to perform at for example 14:30 o'clock at end of that file write:

30 14 * * * root apt-get update

and simply save changes.

That can help, and to don't worry about everyday updates, as it do that automatically at given time and given user and given command.

Lucio
  • 19,191
  • 32
  • 112
  • 191
0

Tested with Kubuntu 20.10:

Create a file /etc/polkit-1/localauthority/50-local.d/10-local-permissions.pkla

(note that directory /etc/polkit-1/localauthority has root-only read permission and must remain that way)

containing:

[My Muon Permissions]
Identity=unix-group:sudo
Action=org.kubuntu.qaptworker3.*
ResultActive=yes

[My Discover Permissions] Identity=unix-group:sudo Action=org.freedesktop.packagekit.* ResultActive=yes

That's it. The first section lets Muon install packages without asking for a password and the second section does the same for updates that are prompted by the "updates" system tray icon. It's a good idea to glance through the updates before clicking "install", though.

Dave Rove
  • 301