OS require authentication for updates

Discussion in 'Newbie Questions' started by Wookash, Sep 22, 2020.

  1. Wookash

    Wookash Thread Starter
    Expand Collapse
    New Member

    Sep 22, 2020
    Likes Received:
    I'm refreshing my with Elementary OS (Loki 0.4.1). It was installed few years ago as second system along with Windows and unused for quite a time. Now I've logged to the system (hopefully I remembered the password :) and to make updates I'm asked for authentication password and this one I don't remember (my login password doesn't work), I'm on an admin account however.
    Can someone advise on this please, how to reset this password so the updates can flow?
  2. adwilson99

    Expand Collapse
    Well-Known Member

    May 2, 2020
    Likes Received:
    Is any error message coming up? normally root (admin) permission is needed to perform the updates, hence it should be asking for your admin password.

    To verify you're logged in as who you think you are you can open a terminal and type whoami (one word), this will output who you're currently logged in as.

    Code (Text):
    If your logged in as someone other than root and can't remember your root password you can try using the sudo (Super User Do) command, if it's setup right it will ask you for your regular users password, but be able to execute admin commands.

    To upgrade from the terminal you would type the following commands.
    Code (Text):
    sudo apt update
    sudo apt upgrade
    The first is just checking for the latest updates and the second is doing the actual upgrade of all packages that have updates available.

    Finally if the sudo command is working for you, you can also use it to reset your root password as follows:
    Code (Text):
    sudo passwd
    Follow the prompts to set a new root password.

    Hope this helps.

Share This Page