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:
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.


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 |
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.