sudo and PATH?
Brian Fahrlander
brian at fahrlander.net
Fri Jan 5 19:06:10 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matt Price wrote:
> hi,
>
> I have a bunch of scripts in /usr/local/scripts/ , some of which need
> sudo access. It's frustrating to always have to type out the whole file
> path:
>
> sudo /usr/local/scripts/worknetworksetup.sh
> instead of
> sudo worknetworksetup.sh
>
> I have my regular user's path set to:
> $PATH:/usr/local/scripts/
>
> but this of course doesn't extend over to sudo Is there a way to change
> sudo's path, preferably permanently and for every user?
Wouldn't you just add this path to _root_'s path?
- --
------------------------------------------------------------------------
Brian Fahrländer Christian, Conservative, and Technomad
Evansville, IN http://Fahrlander.net/brian
ICQ: 5119262 AOL/Yahoo/GoogleTalk: WheelDweller
------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFnqGi6PLtRzZbdhYRAnoQAKCBfaZyhTweN6yuivGQZKSUfbeT/QCePSzY
6cHv6ZV7QBXqewgJdqoGDeo=
=UfcZ
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list