title: login using "ec2-user" instead of root using user data in aws
body: <p>I have an Amazon EC2 instance based off of a RHEL 6.4 64bit AMI. After writing some shell scripts; I created my own AMI Image off of it.</p>
  
  <p>I'm writing user data section which will remove the contents under /home/ec2-user(sudo rm -rf /home/ec2-user/*) and then execute that script. But i'm unable to remove any files.</p>
  
  <p>what I want:</p>
  
  <ul>
  <li>I want to remove files.</li>
  <li>One more weird use case I've, by default user data section enters as "root" user but is there possibility to enter as "ec2-user" user and get my work done..?</li>
  </ul>