Browse code

Merge branch 'listallmybuckets-error' of git://github.com/leostera/s3cmd into merge

Matt Domsch authored on 2013/11/26 11:44:09
Showing 2 changed files
... ...
@@ -179,6 +179,9 @@ Simple s3cmd HowTo
179 179
    account page. Be careful when copying them! They are 
180 180
    case sensitive and must be entered accurately or you'll 
181 181
    keep getting errors about invalid signatures or similar.
182
+   
183
+   Remember to add ListAllMyBuckets permissions to the keys
184
+   or you will get an AccessDenied error while testing access.
182 185
 
183 186
 3) Run "s3cmd ls" to list all your buckets.
184 187
    As you just started using S3 there are no buckets owned by 
... ...
@@ -1662,6 +1662,8 @@ def run_configure(config_file, args):
1662 1662
 
1663 1663
                 except Exception, e:
1664 1664
                     error(u"Test failed: %s" % (e))
1665
+                    if e.find('403') != -1:
1666
+                        error(u"Are you sure your keys have ListAllMyBuckets permissions?")
1665 1667
                     val = raw_input("\nRetry configuration? [Y/n] ")
1666 1668
                     if val.lower().startswith("y") or val == "":
1667 1669
                         continue