ec2-user password for running sudo -H -u

Posted by bool.dev on Server Fault See other posts from Server Fault or by bool.dev
Published on 2012-10-30T16:35:08Z Indexed on 2012/10/30 23:04 UTC
Read the original article Hit count: 186

Filed under:
|
|
|
|

I have to run this command to initialize gitosis:

sudo -H -u git gitosis-init < /home/ec2-user/id_rsa.pub

But that asks me for a password for ec2-user:

$ sudo -H -u git gitosis-init < id_rsa.pub
[sudo] password for ec2-user: 

I do not have a password as i use the default .pem key file to login.

I know i can probably login as the git user and do this, but is there any other way?

Update:

Using Linux AMI 12.09 (micro-instance), in region us-east-1 (N. Virginia)

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about git