I'm trying to act on a bucket and resources but I keep getting access denied error
e.g.
```
$ gsutil ls -L gs://images/large
gs://images/large/aa.png:
Creation time: Tue, 25 Nov 2014 20:03:19 GMT
Cache-Control: public, max-age=2592000
Content-Length: 343034
Content-Type: image/png
Generation: 1416945799570000
Metageneration: 2
ACL: ACCESS DENIED. Note: you need OWNER permission
on the object to read its ACL.
```
Same when I try to run acl operations or override a file.
First of all, I'd like to mention that being the bucket owner means that you are always allowed to delete the objects stored in that bucket but you may not have object owner permissions if the default ACLs were overridden. This is different from how popular operating systems work where there is the concept of a super-user.
Did you try to run that command using the existing service accounts in your project listed in the Developers Console at APIs & auth -> Credentials?
If you are still getting that error, the object was probably uploaded through App Engine. You can make an App Engine application in Python with the following code which lists the object ACLs using the JSON API because App Engine has its own service account (
<project ID>@appspot.gserviceaccount.com
) and it's different from that appear in the Developers Console.