Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: software updater not asking for password

  1. #11
    Join Date
    Jun 2012
    Beans
    16

    Re: software updater not asking for password

    Oh my goodness, you are a genius Bucky! Thank you for that info.

  2. #12
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: software updater not asking for password

    Not sure about genius but no probs ...

    You can also use mv to move the file back. I use cp though as that keeps the original .bak in case you tweak the copy and break again.

    Code:
    sudo mv /file/you're/tweaking.bak /file/you're/tweaking
    Handy cos even if you break it so bad you can't get back in the system you can still boot from the liveCD and copy the original file back, reboot and all should be as it was.

  3. #13
    Join Date
    Jun 2012
    Beans
    16

    Re: software updater not asking for password

    Bucky, thanks again for the assit. Very much appreciated. Now, if only someone could find the way to help me with issue of password for each update, I would be very happy. It would avoid me having to mess something up. I'll keep looking around to see if google has an answer to my question. For now, I'll leave it unsolved. Someone might have the answer, just a matter of waiting.

  4. #14
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: software updater not asking for password

    I linked to the answer in my post earlier, but here's the concise how-to:

    Create the new required file and open it for editing by hitting ALT+F2 and entering the following command:
    Code:
    gksudo gedit /var/lib/polkit-1/localauthority/50-local.d/require-password-to-update.pkla
    Copy and paste the following text into the file:
    Code:
    [Require password to upgrade already installed software]
    Identity=unix-group:admin
    Action=org.debian.apt.upgrade-packages
    ResultActive=auth_admin
    Save the file and quit the text editor and you're all done.

    Thanks for the backup commands BuckyBall (I always do this as well) but in this case you don't even need them, all you are doing is creating a new file rather than editing an existing configuration. If it doesn't work as expected you can simply delete the file you've just created.
    Cheesemill

  5. #15
    Join Date
    Jun 2012
    Beans
    16

    Re: software updater not asking for password

    Quote Originally Posted by Cheesemill View Post
    I linked to the answer in my post earlier, but here's the concise how-to:

    Create the new required file and open it for editing by hitting ALT+F2 and entering the following command:
    Code:
    gksudo gedit /var/lib/polkit-1/localauthority/50-local.d/require-password-to-update.pkla
    Copy and paste the following text into the file:
    Code:
    [Require password to upgrade already installed software]
    Identity=unix-group:admin
    Action=org.debian.apt.upgrade-packages
    ResultActive=auth_admin
    Save the file and quit the text editor and you're all done.

    Thanks for the backup commands BuckyBall (I always do this as well) but in this case you don't even need them, all you are doing is creating a new file rather than editing an existing configuration. If it doesn't work as expected you can simply delete the file you've just created.
    You sure did, sorry I missed that. Thank you as well for the information. I found that just adding auth_admin to the original file did the trick. There was no need for me to create a new file. I want to thank you both for your assistance on the issue. I learned quite a bit just on this alone. Thanks again, I will mark this thread solved.

  6. #16
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: software updater not asking for password

    Just be aware that your solution may not be permanent.

    When there is an update to the package that the file /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla belongs to the file may be overwritten with a new version that doesn't contain your changes.

    This is the reasoning behind creating a separate override file instead, it is guaranteed to survive package updates.
    Cheesemill

  7. #17
    Join Date
    Jun 2012
    Beans
    16

    Re: software updater not asking for password

    I had thought of that, just waiting to see if it does overwrite the file. If it doesn't, then i'll keep it as is. If it does, then I will create the override file. Thank you for the information.

  8. #18
    Join Date
    Jun 2007
    Beans
    13,062

    Re: software updater not asking for password

    Quote Originally Posted by Cheesemill;12397933
    Copy and paste the following text into the file:
    [CODE
    [Require password to upgrade already installed software]
    Identity=unix-group:admin
    Action=org.debian.apt.upgrade-packages
    ResultActive=auth_admin
    [/CODE]
    In 12.10 & onward one would want to use sudo instead of admin group as there no longer is an admin group (in fresh installs

    Identity=unix-group:sudo

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •