By andreagolin
This morning i was awakened by multiple alarm emails sent by our zabbix agent monitoring system, telling us that /etc/passwd was being modified. The agent sent us an email for every one of our droplets (debian 9 stretch).
After the initial scare, i checked the apt logs and it seems that do-agent service was upgraded silently:
apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -qq install -y --only-upgrade do-agent
No other alarms were going off, and everything seems to be working nominal.
I think the changes to /etc/passwd were made to the do-agent user during the upgrade process, but i would like to know from you guys if this is actually the case.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there @andreagolin,
Yes, indeed this seems to be the case. I checked this on one of my Droplets and I noticed the same thing.
You could check it as well with the following command:
- sudo sdiff /etc/passwd /etc/passwd-
The /etc/passwd- file is basically a ‘backup’ of the /etc/passwd file, so with the sdiff command you will be able to see what exactly changed last night.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
