sudo go install github.com/KathanP19/Gxss@latest sudo: go: command not found
I try to install tool with sudo command but it shows sudo: go: command not found....any solutions?
but i installed go
─(spark㉿usr)-[~] └─$ go version 1 ⨯ go version go1.18.1 linux/amd64
echo $PATH
/home/spark/.cargo/bin:/home/spark/.local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/go/bin
sudo has its own $PATH which is defined by the secure_path setting in your sudo config.
To fix it:
sudo visudoDefaults secure_path =:/usr/local/go/bin to the end of the lineAfter saving the config, you should be able to use go with sudo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With