On Friday, 8 May 2015 23:27:09 UTC+10, Brian Coca wrote:
>
> The first one I would look at is sudo (/etc/sudoers), as it normally 
> resets all env variables for a user. 
>

The contents of my /etc/sudoers and /etc/sudoers.d/* files are:

Defaults env_reset
Defaults mail_badpass
Defaults 
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
root ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) ALL
Defaults        env_keep += "RPI_UPDATE_UNSUPPORTED"
Defaults        !secure_path


I can't really see an issue there, but I'm not very experienced with these 
files.  I note though that if I SSH into this machine manually, the PATHs 
are still okay:

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/opt/vc/bin
$ sudo su
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


that is, they still have /sbin in them both before and after sudo-ing..  Is 
my sudo setup still a possible culprit?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f33f820b-42cc-482c-a325-03de25ee1bc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to