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.