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!
-
1The 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.A.B– A.B2022-09-22 19:37:05 +00:00Commented Sep 22, 2022 at 19:37
-
1You may find this helpful: Why Has My Ubuntu Started Defaulting To Root User On Startup?steeldriver– steeldriver2022-09-22 20:10:28 +00:00Commented Sep 22, 2022 at 20:10
Add a comment
|