Article 4ST8C sudo started complaining about missing /etc/environment

sudo started complaining about missing /etc/environment

by
Mig21
from LinuxQuestions.org on (#4ST8C)
Hello

I've had a cron job for years with these contents:

Code:sudo -i -u spamd /usr/local/bin/sa-updateThis morning I got an email from root saying:

Quote:
sudo: /etc/environment: No such file or directory
Luckily I remembered that I installed the sudo security update that was releases recently, using the package from the Slackware repository.

Now it looks like no matter what user I use or what command I run, I get the same warning:

Code:sudo -i -u andrew ls /
sudo: /etc/environment: No such file or directory
bin dev git lib lost+found mnt proc root sbin svn tmp var
boot etc home lib64 media opt razor-agent.log run srv sys usrI guess the sudo update contained more than just the required bugfix. Does anyone have suggestions for what I should do?

I have no idea what I would put in /etc/environment, and why it seems to be required but is not included by default.

Thanks in advance.latest?d=yIl2AUoC8zA latest?i=MXw7_ORKDNo:4Szq96tK5h4:F7zBnMy latest?i=MXw7_ORKDNo:4Szq96tK5h4:V_sGLiP latest?d=qj6IDK7rITs latest?i=MXw7_ORKDNo:4Szq96tK5h4:gIN9vFwMXw7_ORKDNo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments