Deploy Snapshot - Important Files overwritten

Is there some sort of documentation that details what files are replaced when deploying a snapshot? Mainly I have configured debian with all the stuff that I find important to include security measures. For example, I configured it so the root account was disabled and made changes to /etc/hosts. However, after I took a snapshot, deployed the image with a new droplet, both were changed. Root was able to login with the password generated by DO and /etc/hosts now is back to the original as well disregarding all my changes.

So, what exactly is modified by DO when using an image?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

I completely understand the reasons behind modifying hosts. Mainly wondering what files are modified.

Those are the two key things that are modified when a snapshot is deployed. It’s necessary to ensure that users can access their droplets. /etc/hosts is changed to reflect the hostname given the droplet. Another thing that is changed is /root/.ssh/authorized_keys since it reflects the keys added in the control panel.