0

I am Ubuntu Ubuntu 20.04 LTS (GNU/Linux 5.4.72-microsoft-standard-WSL2 x86_64)

And I forgot what I did but now I am able to get this $ sign in my prompt.

However, now I am trying to follow a tutorial where the steps include :

karen@DESKTOP-SB41UI7:~$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - [sudo] password for karen:

But, I remember I have set a no password required in my laptop...for Ubuntu access. For this case, how do I go about reset the password or make it like no need password forever ? Tks.

  • hi @vidarlo, but mine is with my name and not root@DESKTOP-SB41UI7 so does it mean that karen@@DESKTOP-SB41UI7 is referring to root? I have spent countless hours to make it $ and configured so much things that I forgot what I did before. Kindly advise me. Tks. – Karen Goh Jul 17 '21 at 14:53
  • See this answer. Simply run passwd karen to change password for that user, after first running wsl --user root – vidarlo Jul 17 '21 at 14:55
  • @vidarlo, I hope this will not revert things to wsl status because I tried so hard to get wsl2 installed and I would hate to repeat the process again and I did not copy down all the steps how I did it. – Karen Goh Jul 17 '21 at 14:59
  • @vidarlo, i did wls --user root in the windows command prompt but it gives me a name that is same as under C:\Users\PersonName but what I want is to change the karen's and not the PersonName...how do I go about making things happen correctly? – Karen Goh Jul 18 '21 at 14:25
  • Read the linked answer. passwd username will change password for username. – vidarlo Jul 18 '21 at 15:30
  • @vidarlo I managed to switch it to root and there is no need to enter the password. So, I managed to install jenkins and nginx on Ubuntu. The issue now is how to change back to the $ and with my username? – Karen Goh Jul 19 '21 at 05:07
  • Ask a new question about your issue. It's quite distinct from changing password. – vidarlo Jul 19 '21 at 05:08
  • ok. sure. tks :) – Karen Goh Jul 20 '21 at 03:51

0 Answers0