The second time this happened to me, it said the keyboard was a US keyboard, but it was a UK keyboard.
I fixed it by adding the second_user to the sudo group and modifying the /etc/sudoers file with the sudo visudo command to not prompt for a password. That is,
sudo gpasswd -a second_user sudo
and add the following line via sudo visudo:
second_user ALL=(ALL) NOPASSWD; ALL
Then I used the GUI: Menu -> Preferences -> Keyboard and Mouse, to set the keyboard to UK and then back to US. Warning if you have special characters in your password do not reboot in between.
Afterwards, you can remove the second_user from the sudo group:
sudo gpasswd --delete second_user sudo
I fixed it by adding the second_user to the sudo group and modifying the /etc/sudoers file with the sudo visudo command to not prompt for a password. That is,
sudo gpasswd -a second_user sudo
and add the following line via sudo visudo:
second_user ALL=(ALL) NOPASSWD; ALL
Then I used the GUI: Menu -> Preferences -> Keyboard and Mouse, to set the keyboard to UK and then back to US. Warning if you have special characters in your password do not reboot in between.
Afterwards, you can remove the second_user from the sudo group:
sudo gpasswd --delete second_user sudo
Statistics: Posted by rayfranco — Sun Jun 09, 2024 9:38 pm