Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2800

Deleted all users in WSL

$
0
0

I seem to have accidentally deleted all users on my WSL Ubuntu 20.04 LTS setup. Now, I've created a new user "tetemp" which I wish I hadn't done. Unfortunately, I cannot add a user "root" back.

Here's the current entry in passwd:

tetemp:x:1000:100::/home/tetemp:

When I try to add "root" user, I get the following errors:

$ adduser rootadduser: Only root may add a user or group to the system.$ sudo adduser rootsudo: unknown user: rootsudo: unable to initialize policy plugin

I can't change passwd because it is read only.

  • How can I regain access to the "root" user?
  • Is it possible to delete the "tetemp" user.

Thank you for your assistance.


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>