I tried to type in 'exit' and tried cntrl+d too but they both just close the terminal. Why is this? Is there another way to move away from root user?
Asked
Active
Viewed 2,382 times
1 Answers
0
You can alway switch users with su
. simply use
su <username>

totalynotanoob
- 508
-
I see why it wasn't possible. I only have one account, which is the administrator account. Is this harmful/risky? – Younes Boubker Aug 30 '20 at 21:53
-
root and admin are NOT the same. always using root is however indeed not recommended since you might accidentialy break or change something, that you are not supposed to. if you need root privileges temporarily you should use
sudo
– totalynotanoob Aug 30 '20 at 21:56 -
if your username is something other than root, then it is not root but propably admin (capable of
sudo
and such but not everything) – totalynotanoob Aug 30 '20 at 21:58
cmd.exe
or PowerShell window – steeldriver Aug 30 '20 at 22:15awk -F: '$3>999 && $3<65534' /etc/passwd
(I don't think there's a way to list WSL usernames from the Windows side) – steeldriver Aug 30 '20 at 23:34