1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

After removing password from my user account I cant log in

Discussion in 'Other Operating Systems' started by Highhopes, Oct 19, 2021.

  1. Highhopes

    Highhopes Registered Members

    Joined:
    Sep 21, 2021
    Messages:
    21
    Operating System:
    Windows 10
    Hi,

    Im using Linux Mint 20.1
    Yesterday I removed the password protection from my user account. I then shut down the computer, then just today on the welcome screen when I click ''log in'' it just cycles. Everytime I click login it just keeps going back to the same log in screen . When I select ctrl +alt+f1 it asks for my password, when I put the password in, the one I removed, it just asks for it again. Im not sure what happened, a bug?
     
  2. IJAC

    IJAC Super-Moderator Super Moderators

    Joined:
    May 8, 2017
    Messages:
    886
    Location:
    Here
    Operating System:
    Linux Based
    Computer Brand or Motherboard:
    I have a Asus prime Z270A MB
    CPU:
    Intel i5 Quad core
    Memory:
    Rip Jaw 32 GB
    Hard Drive:
    Samsung Evo 500 GB SS
    Graphics Card:
    Radeon R7 260X/360
    Power Supply:
    750 Watt Corsair
    You could try this:
    How do I recover my Linux Mint password?

    Reset forgotten/lost main user password in Linux Mint

    Reboot your computer / Turn your computer on.
    Hold down the Shift key at the start of the boot process to enable the GNU GRUB boot menu (if it does not show)
    Press ESC at the GNU GRUB prompt.
    Press e for edit.
    Use the Arrow keys to highlight the line that begins with kernel and press the e key.
    Source: https://ostoday.org/linux/how-do-i-enable-automatic-login-in-linux-mint.html

    You could also try the default sign in for mint which is name: mint and no password after you select ctrl+alt+f1.
     
    Highhopes likes this.
  3. Highhopes

    Highhopes Registered Members

    Joined:
    Sep 21, 2021
    Messages:
    21
    Operating System:
    Windows 10
    Thanks for that, there is a list, but there is No Kernel anywhere to been seen

    Signing in with the default name is not working.

    Is there a way just to ''factory'' re-set Linux mint alltogether from boot up?, I dont have any saved folders or files or anything important on my account.
     
    Last edited: Oct 20, 2021
  4. Highhopes

    Highhopes Registered Members

    Joined:
    Sep 21, 2021
    Messages:
    21
    Operating System:
    Windows 10
    using startx I was able to get to my desktop, and with that, im I able to re-set Linux? because at the moment everything seems kinda screwed up, when it comes to the start up and log in situation
     
    Last edited: Oct 20, 2021
    IJAC likes this.
  5. Tony D

    Tony D Administrator Administrator

    Joined:
    Sep 25, 2009
    Messages:
    5,062
    Location:
    SE Pennsylvania, USA
    Operating System:
    Windows XP Professional
    a shot in the dark here but when the log in screen comes up and asks for a password, just hit the Enter key.
     
    IJAC likes this.
  6. Highhopes

    Highhopes Registered Members

    Joined:
    Sep 21, 2021
    Messages:
    21
    Operating System:
    Windows 10
    Yes, did that. Doesnt work. The only thing that gets me on my desktop now is typing in startx on startup. Its kinda like putting duck tape on a crack. It works, it allows me to use Linux, but the default login button is not showing up anymore, I have to type in startx everytime on bootup
     
  7. IJAC

    IJAC Super-Moderator Super Moderators

    Joined:
    May 8, 2017
    Messages:
    886
    Location:
    Here
    Operating System:
    Linux Based
    Computer Brand or Motherboard:
    I have a Asus prime Z270A MB
    CPU:
    Intel i5 Quad core
    Memory:
    Rip Jaw 32 GB
    Hard Drive:
    Samsung Evo 500 GB SS
    Graphics Card:
    Radeon R7 260X/360
    Power Supply:
    750 Watt Corsair
    I found this not sure if it will work for you but reading it I don't think it will mess anything up. Try at your own risk but it seemed to work for this person:
    My brute force work around was to add a little script that gets run at boot up after a small delay to start gdm. If it's already started, the script doesn't affect anything, but otherwise, at least GDM gets loaded:

    1. Edit your system crontab:

    Code:
    sudo nano /etc/crontab
    add this line to the end:

    Code:
    @ReBoot root /root/gdmstart
    2. Make the gdmstart script:

    Code:
    sudo nano /root/gdmstart
    with this contents:

    Code:
    #!/bin/bash
    sleep 6
    /usr/sbin/service gdm start
    3. Make the script executable:

    Code:
    sudo chmod u+x /root/gdmstart
    If that doesn't work, you might need to increase the "sleep 6" to a longer sleep on your computer. On the other hand, if there is a long pause before the graphical login starts, you may need to decrease the sleep number so gdm gets started sooner.
     
    Tony D and Highhopes like this.
  8. Highhopes

    Highhopes Registered Members

    Joined:
    Sep 21, 2021
    Messages:
    21
    Operating System:
    Windows 10
    I will take a look at that Tomorrow. Need to walk away from it for abit. Thanks again
     
  9. IJAC

    IJAC Super-Moderator Super Moderators

    Joined:
    May 8, 2017
    Messages:
    886
    Location:
    Here
    Operating System:
    Linux Based
    Computer Brand or Motherboard:
    I have a Asus prime Z270A MB
    CPU:
    Intel i5 Quad core
    Memory:
    Rip Jaw 32 GB
    Hard Drive:
    Samsung Evo 500 GB SS
    Graphics Card:
    Radeon R7 260X/360
    Power Supply:
    750 Watt Corsair
    This may be a better way to go:
    Reset forgotten/lost main user password in Linux Mint
    You can reset your password following the next steps:

    1. Reboot your computer / Turn your computer on.
    2. Hold down the Shift key at the start of the boot process to enable the GNU GRUB boot menu (if it does not show)
    3. Press ESC at the GNU GRUB prompt.
    4. Press e for edit.
    5. Use the Arrow keys to highlight the line that begins with kernel and press the e key.
    6. Go to the very end of the line and add rw init=/bin/bash
    7. Press Enter and then press b to boot your system.
    8. Your system will boot up to a passwordless root shell.
    9. Type in passwd yourusername
    10. Set your new password.
    11. Restart your system.
     
  10. Highhopes

    Highhopes Registered Members

    Joined:
    Sep 21, 2021
    Messages:
    21
    Operating System:
    Windows 10
    I will try that one instead. If that doesnt work, ill just keep starting linux with the ''Startx'' command, its not a huge deal. I just accept that Linux is not windows and there is abit more hassle involved.
     
    Tony D likes this.
  11. IJAC

    IJAC Super-Moderator Super Moderators

    Joined:
    May 8, 2017
    Messages:
    886
    Location:
    Here
    Operating System:
    Linux Based
    Computer Brand or Motherboard:
    I have a Asus prime Z270A MB
    CPU:
    Intel i5 Quad core
    Memory:
    Rip Jaw 32 GB
    Hard Drive:
    Samsung Evo 500 GB SS
    Graphics Card:
    Radeon R7 260X/360
    Power Supply:
    750 Watt Corsair
    You are correct sometimes Linux can throw a curve ball at you. I am still learning Linux and I' ve been using it a few years now. Well if that works for now using Startx command at least you can get in. If you need more help feel free to post back, I am by no means proficient on Linux but I can always try and help.
     

Share This Page