[GH-ISSUE #492] URGENT QUESTION: Operation not permitted #276

Closed
opened 2026-03-04 01:43:57 +03:00 by kerem · 1 comment
Owner

Originally created by @victropolis on GitHub (Nov 3, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/492

Another app that uses the AWS S3 Java SDK to upload content to an s3 bucket. When I look at the bucket using s3fs, I get "Operation not permitted" on the directories.

The FAQ talks about setting the following headers properly, but it doesn't go into a lot of detail.

  • x-amz-meta-mtime
  • x-amz-meta-mode
  • x-amz-meta-uid
  • x-amz-meta-gid

Can you please give me some examples? Or, point me at some sample code somewhere? Thanks in advance!

Originally created by @victropolis on GitHub (Nov 3, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/492 Another app that uses the AWS S3 Java SDK to upload content to an s3 bucket. When I look at the bucket using s3fs, I get "Operation not permitted" on the directories. The FAQ talks about setting the following headers properly, but it doesn't go into a lot of detail. - x-amz-meta-mtime - x-amz-meta-mode - x-amz-meta-uid - x-amz-meta-gid Can you please give me some examples? Or, point me at some sample code somewhere? Thanks in advance!
kerem closed this issue 2026-03-04 01:43:57 +03:00
Author
Owner

@ggtakec commented on GitHub (Jan 7, 2017):

@victropolis I'm sorry for my late reply.
You can do ls command under mount point, then you can see permission made by those header about files(objects).

$ ls -la
total 32798
drwxrwxrwx 1 root  root         0 Jan  1  1970 .
drwxr-xr-x 8 root  root      4096 Jun  2  2014 ..
drwxrwxrwx 1 users users        0 Oct 30 07:53 dir1
drwxr-xr-x 1 users users        0 Sep  2  2013 dir2
-rw-r--r-- 1 users users        0 Nov 28 10:08 file1
-rwxr-xr-x 1 users users      186 Nov 18  2013 exefile1

Those headers means and sets following:
x-amz-meta-mtime is modified time by decimal unixtime
x-amz-meta-mode is file mode by decimal
x-amz-meta-uid is uid by decimal
x-amz-meta-gid is gid by decimal

You can see man page for mount command.

To solve this issue problem, you should use umask and mp_umask option for s3fs.
You can see man page for s3fs about these options.

Thanks in advance for your assistance.
(I'm closing this issue, but if you have more question, please reopsn this issue.)

<!-- gh-comment-id:271066516 --> @ggtakec commented on GitHub (Jan 7, 2017): @victropolis I'm sorry for my late reply. You can do ls command under mount point, then you can see permission made by those header about files(objects). ``` $ ls -la total 32798 drwxrwxrwx 1 root root 0 Jan 1 1970 . drwxr-xr-x 8 root root 4096 Jun 2 2014 .. drwxrwxrwx 1 users users 0 Oct 30 07:53 dir1 drwxr-xr-x 1 users users 0 Sep 2 2013 dir2 -rw-r--r-- 1 users users 0 Nov 28 10:08 file1 -rwxr-xr-x 1 users users 186 Nov 18 2013 exefile1 ``` Those headers means and sets following: x-amz-meta-mtime is modified time by decimal unixtime x-amz-meta-mode is file mode by decimal x-amz-meta-uid is uid by decimal x-amz-meta-gid is gid by decimal You can see man page for mount command. To solve this issue problem, you should use umask and mp_umask option for s3fs. You can see man page for s3fs about these options. Thanks in advance for your assistance. (I'm closing this issue, but if you have more question, please reopsn this issue.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#276
No description provided.