[GH-ISSUE #460] How to use umask and cp all local file to bucket with same local #250

Closed
opened 2026-03-04 01:43:41 +03:00 by kerem · 8 comments
Owner

Originally created by @internalG on GitHub (Aug 15, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/460

  1. The default allow_other option gives the folder 777 permissions but I only want it at 2775, can umask help this?
  2. When I use cp -rp to copy my local files to bucket, the copied files in bucked don't have the same owner as local files. Is it a special issue for s3fs?

TIA

Originally created by @internalG on GitHub (Aug 15, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/460 1. The default allow_other option gives the folder 777 permissions but I only want it at 2775, can umask help this? 2. When I use cp -rp to copy my local files to bucket, the copied files in bucked don't have the same owner as local files. Is it a special issue for s3fs? TIA
kerem 2026-03-04 01:43:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ggtakec commented on GitHub (Sep 11, 2016):

@internalG I'm sorry for late reply.

  1. You can use mp_umask option, please see man page.
  2. It was a problem due to two reasons
    Latest s3fs supports xattr, but thereby s3fs can not set permissions by the behavior of FUSE(1).
    And if s3fs does not support it, s3fs has a bug by itself(2).

I already fixed and tested for case (2) and it worked good, but case(1) is not solved yet.
I try to check FUSE and s3fs now, please wait a while.

Thanks in advance for your help.

<!-- gh-comment-id:246174855 --> @ggtakec commented on GitHub (Sep 11, 2016): @internalG I'm sorry for late reply. 1. You can use mp_umask option, please see man page. 2. It was a problem due to two reasons Latest s3fs supports xattr, but thereby s3fs can not set permissions by the behavior of FUSE(1). And if s3fs does not support it, s3fs has a bug by itself(2). I already fixed and tested for case (2) and it worked good, but case(1) is not solved yet. I try to check FUSE and s3fs now, please wait a while. Thanks in advance for your help.
Author
Owner

@ggtakec commented on GitHub (Sep 11, 2016):

I fixed case (2) by #466.
And duplicated this issue to #467.
Please wait a while.
Regards,

<!-- gh-comment-id:246182351 --> @ggtakec commented on GitHub (Sep 11, 2016): I fixed case (2) by #466. And duplicated this issue to #467. Please wait a while. Regards,
Author
Owner

@internalG commented on GitHub (Sep 12, 2016):

Thanks a lot! I'm a little confused by current situation. The xattr and cp -p are mutex. The official decision is to use use_xattr option to enable xattr explicitly, and -p option is enabled by default, right?

<!-- gh-comment-id:246294039 --> @internalG commented on GitHub (Sep 12, 2016): Thanks a lot! I'm a little confused by current situation. The xattr and cp -p are mutex. The official decision is to use use_xattr option to enable xattr explicitly, and -p option is enabled by default, right?
Author
Owner

@ggtakec commented on GitHub (Sep 13, 2016):

Hi @internalG
I think that s3fs must operate the cp command with preserve mode as default operation.
If there is no mistake in my s3fs check, cp command does not work as a preserve(file mode only is affected) when s3fs handles the xattrs for FUSE operation.
(If there is my mistake, I have to understand it and made a duplicated Issue(#467) for that.)
Thus I will change xattr handling by option, it will like "use_xattr" option.

I believe that most users are not affected by this change.
And s3fs will can also suppress the extra request without this option.

Regards,

<!-- gh-comment-id:246667243 --> @ggtakec commented on GitHub (Sep 13, 2016): Hi @internalG I think that s3fs must operate the cp command with preserve mode as default operation. If there is no mistake in my s3fs check, cp command does not work as a preserve(file mode only is affected) when s3fs handles the xattrs for FUSE operation. (If there is my mistake, I have to understand it and made a duplicated Issue(#467) for that.) Thus I will change xattr handling by option, it will like "use_xattr" option. I believe that most users are not affected by this change. And s3fs will can also suppress the extra request without this option. Regards,
Author
Owner

@internalG commented on GitHub (Sep 14, 2016):

Nice! Keep forward.

<!-- gh-comment-id:246878018 --> @internalG commented on GitHub (Sep 14, 2016): Nice! Keep forward.
Author
Owner

@ggtakec commented on GitHub (Sep 19, 2016):

@internalG
I merged #471 for this second problem.
Then s3fs works without the extended attribute as deafult, so you can copy a file with preserve file mode.
Please try to use latest master branch codes.
Regards,

<!-- gh-comment-id:247911916 --> @ggtakec commented on GitHub (Sep 19, 2016): @internalG I merged #471 for this second problem. Then s3fs works without the extended attribute as deafult, so you can copy a file with preserve file mode. Please try to use latest master branch codes. Regards,
Author
Owner

@internalG commented on GitHub (Sep 19, 2016):

Roger! 👍

<!-- gh-comment-id:247933439 --> @internalG commented on GitHub (Sep 19, 2016): Roger! 👍
Author
Owner

@ggtakec commented on GitHub (Mar 30, 2019):

We kept this issue open for a long time.
I will close this, but if the problem persists, please reopen or post a new issue.

<!-- gh-comment-id:478219288 --> @ggtakec commented on GitHub (Mar 30, 2019): We kept this issue open for a long time. I will close this, but if the problem persists, please reopen or post a new 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#250
No description provided.