I think it's really strange that apt-get update and apt-get upgrade need sudo. But why doesn't using Software Updater need it as welll?

I mean, I can install (almost) all updates without even being sudo, making Software Updater an easier (and maybe more safe) way to update?


Because you silently authenticate via PolicyKit when running the Software Updater. Part of the 'secret' is in the file


more exactly via this entry:

[Update already installed software]
  • Well, saying that, it means that If I leave the Software Updater open (maybe you forgot to close while surfing the web), it means that the user is in sudo mode? Or the sudo is only avaible for the Software Updater (the rest of the computer is in the "normal" mode) – Nori-chan Apr 15 '15 at 1:08
  • @Nori-chan: The latter is true. Via PolicyKit you can pick certain procedures with certain applications where you don't need to authenticate via password. For instance, when Software Updater prompts you to install a new kernel version, it asks for password, since it involves new packages, which is not covered by the PolicyKit rule. – Gunnar Hjalmarsson Apr 15 '15 at 2:48
  • Let's see if I got the idea: with PolicyKit, I can choose what commands I want to have with sudo access, and what commands don't need it. Is that correct? – Nori-chan Apr 15 '15 at 3:01
  • 1
    @Nori-chan: If you really want to understand, you'd better go to e.g. this page. – Gunnar Hjalmarsson Apr 15 '15 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.