Hi,
When logged into my Amazon EC2 instances as user ec2-user, I cannot edit/delete files in my web root folder.
All files are owned by apache:apache, and I have added ec2-user to the apache group. What am I missing?
To sum up:
[ec2-user@xxx ~]$ groups ec2-user
ec2-user : ec2-user wheel apache
[ec2-user@xxx ~]$ id ec2-user
uid=222(ec2-user) gid=500(ec2-user) groups=500(ec2-user),10(wheel),48(apache)
[ec2-user@xxx ~]$ ls -la /var/www/html
total 176
drwxrwxr-x 6 apache apache 4096 Oct 24 00:44 .
drwxr-xr-x 3 apache apache 4096 Oct 23 22:51 ..
-rwxrwxr-x 1 apache apache 395 Jan 8 2012 index.php
If I try to edit or remove index.php I get "Permission denied".
I must be missing something obvious!! Please help!
If you need anymore info, please let me know.