#Unable to login onto Ubuntu [Lost login credentials]

12 messages · Page 1 of 1 (latest)

mellow birch
#

Hi,

I am using Ubuntu on my machine right now. It had a few issues on the login screen and I tried to fix that by

#setting NOPASSWD:ALL for all users```

However that has kept the original users because it's just the password that is null. Now whenever I try to login it doesn't let me and asks for a password that does not exist. 


Troubleshooting I have tried:

```I opened grub and went into recovery mode's root shell by doing `rw init=/bin/bash` 

I have got access to a terminal now but it says root@(none) and I am not sure where to go from here. 

Image attached for reference
#

@mellow birch

mellow birch
#

Please ignore the above text guys. Please share any troubleshooting if you have any, I am still stuck with this issue. I wanna spend my weekend doing cool stuff.

#

Hi,

I am using Ubuntu on my machine right now. It had a few issues on the login screen and I tried to fix that by

#setting NOPASSWD:ALL for all users```

However that has kept the original users because it's just the password that is null. Now whenever I try to login it doesn't let me and asks for a password that does not exist. 


Troubleshooting I have tried:

```I opened grub and went into recovery mode's root shell by doing `rw init=/bin/bash` 

I have got access to a terminal now but it says root@(none) and I am not sure where to go from here. 

Image attached for reference
mellow birch
#

Some updates:

I am able to gain access to my main user through this root shell. I had to create a pseudo terminal using -P but it worked!

#

Apparently my user is not added on the sudoer list

#

But this would mean that I should atleast be able to get access onto my machine

#

Nothing works

mellow birch
#

It worked. We can remove the password string from /etc/passwd or using usermod and it wouldn't ask you for the password.