lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 20.04.5 LTSRelease: 20.04Codename: focal
Hi
I have been using Ubuntu for a number of months. I run a Windows 10 PC and installed Ubuntu via the Microsoft Store. I created a user for myself during the initial setup - since then whenever I open an Ubuntu terminal from Windows it loads as that user.
On Thursday, I loaded Ubuntu and, instead of loading up as my user, it loaded up as the root user. My user still exists - I can switch to my user via su
and then proceed as normal. It's not causing me any problems, but it does qualify for unusual behaviour and there are obvious security implications.
I have run sudo apt update
and sudo apt upgrade
to make sure everything is up to date. I am using the same Windows account to load Windows 10 that I always have. I am not aware of any operational changes that have caused this behaviour.
One factor that may indicate a cause - I use code .
to access Visual Studio Code. This was not working after switching user, and was only made to work again when I added it to my user's $PATH.
Attempting to google this situation has been somewhat undermined by Google assuming I want to log in as root, where in reality the reverse is true.
Can anyone suggest what may be going on here, and suggest a fix please? I'm not above ripping everything out and starting again with a fresh install, but before I entertain that I was wondering if something simple could be an issue.
Thanks