Search code examples
linuxrootsudo

Linux: How can I log in as root user on my local machine?


I would like to be a user with root access, when developing in Visual Studio Code on my local machine.

I read many posts about this but they all depend on using something with su or sudo. Unfortunately, in my case both return "bash: su(do): command not found".

How can I enable root access for myself?


Solution

  • MSYS/MinGW is essentially just a collection of linux utilities compiled as windows executables. It is not actually linux, so linux concepts, like the root user, do not apply. Similarly, tools that only work on linux, like nvm, also will not work in MSYS. If you want something that is actually linux, check out the Windows Subsystem for Linux, or WSL.