Re: sudo not looking into /usr/local

2016-11-16 Thread Mathieu Bridon
On Wed, 2016-11-16 at 14:19 +, Samuel Rakitničan wrote: > > Am 16.11.2016 08:08, schrieb Samuel Rakitničan: > > > > You can change the default behaviour in "/etc/sudoers" or (better) > > by adding a file in "/etc/sudoers.d". > > > > If you want to keep the users path, add: > > > > Defaults e

Re: sudo not looking into /usr/local

2016-11-16 Thread Samuel Rakitničan
> Am 16.11.2016 08:08, schrieb Samuel Rakitničan: > > You can change the default behaviour in "/etc/sudoers" or (better) by > adding a file in "/etc/sudoers.d". > > If you want to keep the users path, add: > > Defaults env_keep += "PATH" > Defaults !secure_path > > or to change the (default) s

Re: sudo not looking into /usr/local

2016-11-16 Thread jenslody
Am 16.11.2016 08:08, schrieb Samuel Rakitničan: On Tue, 2016-11-15 at 18:42 +, Samuel Rakitničan wrote: What about -E option? Thanks for that, didn't take this into consideration. -E option however seems to have no effect on PATH environment variable. $ sudo -E env | grep ^PATH PATH=/sbin

Re: sudo not looking into /usr/local

2016-11-15 Thread Samuel Rakitničan
> On Tue, 2016-11-15 at 18:42 +, Samuel Rakitničan wrote: > > What about -E option? Thanks for that, didn't take this into consideration. -E option however seems to have no effect on PATH environment variable. $ sudo -E env | grep ^PATH PATH=/sbin:/bin:/usr/sbin:/usr/bin Following however

Re: sudo not looking into /usr/local

2016-11-15 Thread Anoop C S
On Tue, 2016-11-15 at 18:42 +, Samuel Rakitničan wrote: > Hi, > > Something I stumbled upon today is that there is no convenient way by default > to make some custom > script accessible via sudo without specifying full path. What about -E option? > Found out that sudo have limited set of pa