0
votes
0answers
85 views

I broke SSH by using chmod on an EC2 Instance — How do I correct?

I have been running an Amazon EC2 Instance for a while, and recently accidentally changed permissions/ownership on folders recursively. I can no longer SSH into the instance. I do not recall what the ...
0
votes
1answer
29 views

Why does a double sudo modify permissions?

Context: sshed into an AWS t1.micro instance running Amazon Linux 2013.09, using the default ec2-user. I'm trying to list the contents of the default postgresql directory: What's in there? $ ls ...
1
vote
0answers
110 views

Amazon Linux add user to group

I am using Amazon Linux AMI image doing development. And I want to add the default user 'ec2-user' into group 'docker' like below: sudo groupadd docker sudo gpasswd -a ec2-user docker When I logged ...
1
vote
3answers
844 views

Unable to use sudo su - command

I am new in ubuntu, i am trying to run following command sudo su - Bu i am getting following message sudo: unable to open /etc/sudoers: Permission denied sudo: no valid sudoers sources found, ...
1
vote
1answer
541 views

how to correct sudo permission

I'm running AWS EC2 Micro instance and had issues getting permission to the root access with EC2-user. Followed a tutorial online and ran the following commands: sudo chgrp ec2-user /etc sudo chmod ...
0
votes
1answer
5k views

Setting correct permissions for uploading files

I have a php script that uploads a file to a directory called "uploads". The only way I can get the upload to work is if I do: chmod 777 uploads I know this isn't correct but I don't know ...
0
votes
1answer
78 views

Cant write to directory when not logged in as root

I am switching a site over to amazon ec2 and the pages that allow a user to upload a file to a directory arent working. When Im logged in as root via ssh I can 'touch' a new file to there but not when ...
2
votes
2answers
2k views

Can't cd to directory of programs like apache or tomcat on ec2: permission denied

hi I have setup tomcat 7 through yum on an ec2 instance. I have access to the user ec2-user by default through aws from launching the ec2 instance. I am trying to simply look at my tomcat logs ...
0
votes
1answer
2k views

Permission denied in Amazon EC2 while accessing tomcat7 folder

I am trying to copy a log file from a Amazon EC2 instance to my local machine (Windows 7). I am using WinSCP438 which is able to connect to the remote server i.e Amazon EC2 instance. I am trying to ...
0
votes
1answer
355 views

Unable to access Tomcat7 folder in Amazon EC2 via WinSCP in Windows 7

I am trying to copy a file Catalina.out from Amazon EC2 to local machine using WinSCP. I have been able to establish the connection but when I try to access the tomcat7 folder I get the error ...
1
vote
1answer
692 views

Is there a good way to give ec2-user admin credentials on EC2? I'm sudoing too often

Disclaimer: I'm only decent with EC2 and Unix commands / Linux administration. Question: How do you give ec2-user the same permissions as root? I'm tired of sudoing. Why? I found out that you have ...