Hi there,
I recently needed to run some commands for qmk (keyboard controller firmware). Their guide described the commands (which worked), but the flashing software wasn't able to detect my keyboard without sudo.
However, sudo's path is different from the user. Therefore, I looked up online some solutions to this.
Stupidly, I ran this command (without knowing how to go back...) sudo env "PATH=$PATH" <command>. I assumed this would use my current path for only the command, but it instead set the sudo path to my current users' path.
How do I change this back to what is in /etc/sudoers? Do I really need to? I saw more information about - seems like it would be insecure to keep it like how it is now (if anyone could explain that to me, I would be grateful).
Thank you.