[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Change default PATH for Jessie / wheezy+1

On 08/08/12 03:27, The Fungi wrote:

> Are you certain? For me, 'ifconfig' as a normal user returns
> "command not found" but 'sudo ifconfig' works just fine...

I was based on my experiments[1]. But I discovered that my
/etc/sudoers didn't contain following config line:

Defaults       secure_path

So ignore the sudo part as it should be no problem. The bash completion even
changes PATH to contain the sbin directories for sudo but zsh seems to honor PATH
and doesn't extend to check for programs.


$ echo $PATH
$ sudo visudo
sudo: visudo: command not found
$ export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
$ sudo visudo
visudo: /etc/sudoers.tmp unchanged

Reply to: