nixos-config icon indicating copy to clipboard operation
nixos-config copied to clipboard

Incorrect sudo password

Open yosakoo opened this issue 6 months ago • 11 comments

After installing according to the script, my old password to sudo stopped working and I can't log into the hyperland

yosakoo avatar May 01 '25 17:05 yosakoo

Did you install on a fresh NixOs install or in an existing one ? Either way it is strange that the root password isn't working as the config doesn't set any password.

Frost-Phoenix avatar May 02 '25 07:05 Frost-Phoenix

yes, I installed it on a fresh build and tried twice and in both cases the password was lost

After rebooting, the password for sudo did not work on either the old snapshot or the new one

yosakoo avatar May 02 '25 08:05 yosakoo

and I can't see the password hash because I don't have access to sudo lol)

yosakoo avatar May 02 '25 08:05 yosakoo

What keyboard layout did you use to set your password during the install ?

By default the config set's the keyboard layout to US. So if you used another layout to set your password during the install phase the characters may not be in the same place.

Frost-Phoenix avatar May 02 '25 10:05 Frost-Phoenix

in the first attempt I used ru/en and in the second only en

yosakoo avatar May 03 '25 07:05 yosakoo

I also encountered the same problem.

Nichtigott avatar May 06 '25 19:05 Nichtigott

After I run the script, my user password is invalid, and when I use the original Gnome desktop, the user password will also be replaced or cleared.

Nichtigott avatar May 06 '25 19:05 Nichtigott

After I run the script, my user password is invalid, and when I use the original Gnome desktop, the user password will also be replaced or cleared.

Make sure you sudo passwd ___ before rebooting into your system after rebuilding NixOS. Replace ___ with the username you have. Then do it again with the word root instead if you wanted to have a different root password.

ghost avatar May 10 '25 23:05 ghost

same for me

Niklas9401 avatar May 18 '25 21:05 Niklas9401

same thing happened to me twice, any solutions?

VMouhV avatar Jun 12 '25 15:06 VMouhV

Hi, anyone found a solution for this?

EmilianoHub avatar Jun 29 '25 15:06 EmilianoHub