Desktop Environment (if applicable):
KDE Plasma 5.27.12
Problem Description:
Starting the switch from Windows to Ubuntu Studio and starting with my laptop. Ubuntu installed and I am able to login with the password I set. Once I am logged in however, the password stops working. I cannot use it for sudo commands, I cannot use it to reset my password, I cannot even use it to unlock my screen after it locks - I am forced to reboot. I read an followed instructions on how to enter recovery mode and add my account to the sudo group. There is a problem with grub where I select the recovery mode option, which should bring up a list of options - it does not, it is a blank menu. By trial and error I was able to find the option I needed. None of this has helped. Occasionally Sudo and my password seems to work, but with no consistency and I have not yet decerned a pattern for when it does (it is very rare and sometimes after a boot, but only once and then stops and not after every boot). Ubuntu will be useless to me if I cannot sudo. It just keeps saying that authentication failed. WAY past my level of Linux fu.
Relevant System Information:
Lenovo Legion Y545. Brand new Ubuntu Studio install, clean wipe from Windows 11. Kernel Version 6.14.0-33-generic (64-bit)
Update: While playing around with things, I noticed that when the screen locks and I go to unlock it, there is a button almost hidden to the right of the password input box. The first is the right facing arrow, but the second is an upward and downward facing arrow side by side. When I input the password before hitting that button, it fails, but when I hit the button with the side by side arrows are larger sign in box appears giving me both the option to change user and a pull down menu for different versions of Plasma. When I use the same password on this screen, I am able to sign in no problems. It seems as though the two sign in screens are authenticating with different authentication lists. This tells me that my password and possibly my whole account has not fully propagated throughout the device. I do not know linux well enough to say which authentications each are using, but I am guessing that even knowing I supposedly added my account to the sudo group (assuming my instructions were correct and that I followed them correctly) that the sudo group is not talking to the correct authentication service, and my credentials are not being disseminated. Is there anyone out there with knowledge of the various authentication services (kerberos?), how they interact, and how to force them to talk / share credentials?
That sounds legit troubleshooting steps, and completely beyond my ability to without some very specific instructions. I work in IT and data centers, I am no stranger to that field, but my linux is beginner at best, part of why I am making the switch from Windows (that and windows security just sucks). Can you give more detailed instructions?
I have a high degree of certainty that the keyboard is not faulty. Plus I am able to sign in with no problems from the boot up login screen every time.
Now I BELIEVE the Keyboard language should be the same as the system language, but where / how do I verify that? And how do I change it if I think it is incorrect?
Please open a terminal and run the following commands separately:
locale
setxkbmap -print -verbose 10 | grep layout
Copy the output from the terminal and paste back here in a reply. Then highlight the text and use </> in the composer or Ctrl + E on the keyboard to wrap with code tags.
Let’s first see if the system language and keyboard layout match up before next steps.
Oh, and as a side note, I have tried changing the keyboard layout in settings - no change. Also I have opened LibreOffice and tested the keyboard and the output was correct. I also typed out my password there and it typed correctly.
Since we seem to have ruled out other possibilities, I am starting to suspect there is some issue with PAM (Pluggable Authentication Modules) used by sudo, screen unlock, etc.
We can check this and hopefully see if there is anything missing or misconfigured: cat /etc/pam.d/sudo
As I stated before, this is a fresh clean install from Windows 11, I made sure to back everything up before the install. If this entire OS was nuked there is nothing that cannot be re-downloaded. Just bout everything I have is on external drives, and those have back ups. Not my first goat rodeo
Oh, also, this install is only 3 days old, and without reliable sudo access, I have not been able to do much downloading since then, so this is mostly a clean off the shelf version. I downloaded a VPN, I think that is the extent of what I have been able to do so far.