0

When I open ubuntu(wsl) on windows , usually, it opens as karim_123 user and not as root user. But this time it opened as a root user. How can I return back to my unix linux account(karim_123)? I used su - karim_123 command but when I close the terminal and reopen it, it opens as root user again so I have to switch back to my user(karim_123) every time I open ubuntu terminal. Additionally, I’m not capable of using code . command anymore to open my files in VS code. So it is very annoying and I can’t work on my projects!

2
  • 1
    The answer would be: just log as karim_123 and not as root. But the reality is your problem is about how to use WSL, a Windows feature which would be better dealt with at superuser.com not here which is about Unix/Linux, not Windows. Commented Sep 22, 2022 at 19:37
  • 1
    You may find this helpful: Why Has My Ubuntu Started Defaulting To Root User On Startup? Commented Sep 22, 2022 at 20:10

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.