Comment #20 on issue 321 by
ggta...@gmail.com: no write permission for
non-root user
http://code.google.com/p/s3fs/issues/detail?id=321
Hi, all
s3fs after v1.63 are different from v1.61, s3fs after v1.63 are using
user/group/mode permission for accessing object.
s3fs before v1.62 always accesses all object as "root".
So that, you can access all objects.
About this issue, I could not reproduce, then if you can please let me know
about below result.
1) About the file(object) which mode is displayed "----------"(000)
Was this file uploaded by s3fs?
If this file is uploaded by other S3 clients(s3cmd etc), the file does
not have "x-amz-meta-mode" header.
Then because s3fs can not decide mode, it is displayed as 000.
2) About the file(object) headers
If somebody can do, I want to know the headers of this trouble
file(object).
When we call S3 API(HEAD) directly, we can get additional headers for
the object.
If the file(object) path is "mybucket/file", we can send like below
request.
---------------------------------------------
HEAD /file HTTP/1.1
Host:
mubucket.s3.amazonaws.com
content-length: 0
Authorization: AWS *******
x-amz-date: Fri, 12 Apr 2013 01:51:59 +0000
---------------------------------------------
S3 will return like below response for this request.
---------------------------------------------
HTTP/1.1 200 OK
x-amz-id-2: ******
x-amz-request-id: *****
Date: Fri, 12 Apr 2013 01:52:00 GMT
x-amz-meta-gid: 0
x-amz-meta-mode: 33188
x-amz-meta-mtime: 1354806000
x-amz-meta-uid: 0
Last-Modified: Fri, 08 Mar 2013 02:32:06 GMT
ETag: "*******"
Accept-Ranges: bytes
Content-Type: text/plain
Content-Length: ***
Server: AmazonS3
---------------------------------------------
If you can not call S3 API directly, you can use s3cmd command instead
of calling.
---------------------------------------------
$ s3cmd -d info s3://mybucket/file
---------------------------------------------
This command displays the result with debugging information.
You can see like below lines in this result.
---------------------------------------------
DEBUG: Sending request method_string='HEAD', uri='/file', *******
DEBUG: Response: {'status': 200, 'headers':
{'x-amz-meta-uid': '0', 'content-length': '5', *****
---------------------------------------------
I want to know what headers is in response. Please let me know the
response which you recieve.
Thenks in advance in your help.
Regards,