Cleanup build account in resulting golden images #271
-
Hi Ryan, I wanted to know if there was an easy way to clean up all references to the "build user" account at the end of the image build process? The only way to do that I found is to use the root account and secure the sshd_config file at the end of the process otherwise impossible to clean a (currently connected) user account without cutting the connection of the ssh communicator of packer. Do you have a better idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for the ⭐ 'ing the project. Unfortunately, I've not considered this (yet. - good potential enhancement), but I imagine that this is a similar issue amoungst many other plugins and their builders. Tagging some pals @nywilken and @kmruddy to see if they have some ideas that may assist. Perhaps a first-boot script? Ryan Johnson |
Beta Was this translation helpful? Give feedback.
Thanks for the ⭐ 'ing the project.
Unfortunately, I've not considered this (yet. - good potential enhancement), but I imagine that this is a similar issue amoungst many other plugins and their builders.
Tagging some pals @nywilken and @kmruddy to see if they have some ideas that may assist.
Perhaps a first-boot script?
Ryan Johnson
Senior Staff Solutions Architect | Product Engineering @ VMware, Inc.