sudo and PATH?
Matt Price
matt.price at utoronto.ca
Sat Jan 6 06:45:43 UTC 2007
On Fri, 2007-05-01 at 15:35 -0400, Derek Broughton wrote:
> 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
thanks derek, nice to know. buti s sudo's PASTH set here? I think not;
I changed the env_supath to:
ENV_SUPATH \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/local/scripts
to no effect. I think sudo gets its paths from somewhere else;
![ sudo = root]. At least so it seems to me.
obviously not the world's most important problem, but I'd like to
know...
matt
I added
> --
> derek
>
>
--
Matt Price
History Dept
University of Toronto
matt.price at utoronto.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070106/f7e1d7a7/attachment.sig>
More information about the ubuntu-users
mailing list