Results 1 to 3 of 3

Thread: How to change root/user password in GRUB console?

  1. #1
    Join Date
    Apr 2017
    Location
    CS #257
    Beans
    55
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    How to change root/user password in GRUB console?

    Initially there was Ubuntu Mate 16.04 in dual boot with Windows installed on an ASUS laptop.
    I upgraded Ubuntu Mate to 18.04, then entered the user password incorrectly several (10<) times,
    and it got locked by some "tripwire", requiring passphrase. Passphrases I wrote down
    didn't match. I booted Ubuntu from an installation disk, so it locked all user programs and desktop
    in a file requiring this passphrase, so I could use only 20gb of storage in general "Try Ubuntu" GUI.

    I didn't use Ubuntu 18.04 since then maybe for several months or more, then I used only booting to Windows
    for ~4-5 days. After yet several months after trying to login into locked Ubuntu desktop, the user password
    doesn't match, though this same password was ok since my last usage if Ubuntu.

    Upon booting into Advanced Option for Ubuntu, there are options to choose kernels and
    same kernels in recovery mode: Linux 4.15.0-99-generic, 4.13.0-45-generic

    Upon getting into Ubuntu recovery mode on Linux 4.15.0-99-generic kernel and getting into GRUB menu,
    there is a fleeting "Failed" message reporting that ~"Failed Load Module service. Check your systemctl status
    systemd-modules-load-service" .
    So while in GRUB console I tried:
    Code:
    password USER PASSWORD
    for both root and username of the laptop user, and it didn't change the password
    (the password still doesn't allow to login).
    I can get into full-screen console by ctrl+alt+F1-4 upon full bootup into Ubuntu, but it requires user's
    credentials first, which no longer seem matching.

    And after exiting the GRUB console Ubuntu recovery mode to resume normal Ubuntu boot,
    it boots into Windows. Maybe I can try updating GRUB or Ubuntu in recovery mode?

    How is it possible to change user/root password in GRUB console?
    What are other ways to change the password to login into Ubuntu?
    Last edited by smith73; March 20th, 2022 at 02:14 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to change root/user password in GRUB console?

    In Grub CLI, you are running the grub environment, which at that level has no connection to any OS... (It is used as a boot manager to boot other OS'es.) There is no Linux kernel running yet, so you have no access or ability from there to change any user passwords for an OS (yet).

    If you went into Advanced > Recovery ... Then it would boot a Linux Kernel in recovery mode. Which then you would use mount filesystem with networking... The Use drop to Root prompt... whic from there, you would be root, in that Linux OS, where you can issue that command to change a user password.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Dec 2009
    Location
    Fareham, UK
    Beans
    2,385
    Distro
    Ubuntu

    Re: How to change root/user password in GRUB console?

    This old page is still relevant for a forgotten password. https://www.psychocats.net/ubuntu/resetpassword

Tags for this Thread

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
  •