How to change default user (ubuntu) via CloudInit on AWS

Posted by Gui Ambros on Server Fault See other posts from Server Fault or by Gui Ambros
Published on 2012-10-21T02:00:06Z Indexed on 2012/10/21 5:07 UTC
Read the original article Hit count: 88

I'm using CloudInit to automate the startup of my instances on AWS. I followed the (scarce) documentation available at http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/annotate/head%3A/doc/examples/cloud-config.txt and examples on /usr/share/doc/cloud-init, but still haven't figured out how to change the default username (ubuntu, id:1000).

I know I can create a script to manually delete the default ubuntu and add my user, but seems counter intuitive given that CloudInit exist exactly to automate the initial setup.

Any ideas?

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu