Quantcast
Channel: User Matthew Flaschen - Server Fault
Viewing all articles
Browse latest Browse all 40

Answer by Matthew Flaschen for Problems with sudo in path

$
0
0

Your test is misleading, because PATH is expanded before calling sudo. Instead, do:

sudo sh -c 'echo $PATH'

and you will see that there is a different path.

To include /home/nomemory/.scriptfarm/scripts in your system-wide PATH, you can modify /etc/profile:

PATH="$PATH:/home/nomemory/.scriptfarm/scripts"

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>