sudo and PATH?

Derek Broughton news at pointerstop.ca
Fri Jan 5 19:35:30 UTC 2007


Brian Fahrlander wrote:

> Matt Price wrote:
>> 
>> 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?

Sure, but where is that set... You could do it in root's .bash* scripts, but
better here:

derek at othello:~$ egrep "^ENV_\w*PATH" /etc/login.defs
ENV_SUPATH \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
ENV_PATH        PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
-- 
derek





More information about the ubuntu-users mailing list