0
votes
2answers
45 views

Disable NOPASSWD sudo access for ubuntu user on an EC2 instance

How can I disable the passwordless sudo access for the default ubuntu user on an EC2 instance? Is it safe to do it?
1
vote
2answers
65 views

How does Amazon ec2-user get its sudo rights

I am looking for where the default Amazon AMI linux image sets up the privileges for the default ec2-user account. After logging in with this account I can use sudo successfully. Checking via the ...
-1
votes
2answers
54 views

Sudo access on Ubuntu

I'm new to linux and the sysadmin world all together, so I'm looking for some advice and a couple of answers. I set up an EC2 instance running Ubuntu 12.04 and I SSH in via key pair. First of all, I ...
0
votes
3answers
168 views

EC2 Automatic Instance Sudo Not Working

I'm using Atlassian Bamboo to setup a build server. It allows the use of "elastic images" which I can specify which of their AMI's to use (I'm using the Amazon Linux/CentOS image). It also allows you ...
8
votes
4answers
1k views

`sudo echo “bla” >> /etc/sysctl.conf` permission denied

Disclaimer: I'm pretty novice at sysadmin stuff. I'm trying to set up port forwarding in an AWS EC2 instance, this has to be done in the command-line because I don't want to go in and edit anything, ...
1
vote
2answers
1k views

SUDO YUM not found

I am running a Amazon ec2 instance on amazon's linux. Whenever I run anything sudo yum it give me this: sudo: yum: command not found ec2-user$ rpm -qf /usr/bin/yum yum-3.2.29-30.24.amzn1.noarch ...
3
votes
3answers
1k views

ec2-user password for running sudo -H -u

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 < ...
0
votes
1answer
156 views

File permission woes on an Ubuntu ec2 instance

I've set up an amazon ec2 instance and I'm have some file permission issues. I've created myself a new user and added myself to the following groups: adm:x:4:me,ubuntu sudo:x:27:me ...
-1
votes
3answers
297 views

Unable to Sudo into EC2 server

When i type "sudo -i" on an EC2 instance, i get following error: sudo: must be setuid root Which means that someone has tampered with the sudo permissions. Now the only way to login to server ...
1
vote
2answers
2k views

sudo: sorry, you must have a tty to run sudo

I am trying to run this bash script as a cron job, but I am getting an error which says sudo: sorry, you must have a tty to run sudo. I am running this bash script in amazon EC2 linux instance. ...
1
vote
1answer
659 views

EC2 instance: non ec2-user not in sudoer file?

Amazon EC2-instance: I made a user 'admin' and copied ec2-user's keys with proper permission. After successful login, i tried to do sudo su for root access, it says 'admin is not in the sudoers file. ...
2
votes
1answer
1k views

Sudo Error “ you must have a tty to run sudo”

I am trying to run the following command: sudo git pull; I get the following error: Command failed: sudo: sorry, you must have a tty to run sudo The command is being run from a nodejs server ...