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

Re: behavior of sudo -E

On 2014-07-08 16:53 +0200, Linux-Fan wrote:

> On 07/08/2014 04:42 PM, Harry Putnam wrote:
>> However, in that case I do not understand this behavior below:
>>   sudo -E which enw
>>   {no output}
>>   sudo -E enw
>>   sudo: enw: command not found
> I do not understand it either. I just tried it and the ``problem'' is
> reproducible: I believe it is related to some sudo policy or such. (The
> manpage says ``Environment: PATH May be overriden by the security
> policy.'') Also, this seems to be special to the $PATH variable. Others
> work fine.

The secure_path setting in /etc/sudoers is responsible for that, it


Reply to: