AMIBuilderNotes.txt #1

  • //
  • guest/
  • perforce_software/
  • helix-installer/
  • dev/
  • src/
  • AMIBuilderNotes.txt
  • View
  • Commits
  • Open Download .zip Download (591 B)
These notes capture some sample changes needed to convert a standard
machine image into one suitable for publishing on the Amazon Marketplace.
Essentially, zap any users's SSH keys, passwords, and shell history.

This info may be used should an '-ami' option be added to 'reset_sdp.sh' in the future.

#------------------------------------------------------------------------------

sudo su -
rm -rf /home/centos/.ssh/authorized_keys /root/.ssh/authorized_keys
shred -u /etc/ssh/*_key /etc/ssh/*_key.pub

# clear /etc/shadow perforce pw
passwd -d perforce

history -c
exit

history -c
exit
# Change User Description Committed
#1 27137 C. Thomas Tyler Added AMI builder notes.