[GH-ISSUE #1288] Permissions Issue with s3fs mount - bitbucket #688

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

Originally created by @r4yfx on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1288

Additional Information

The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD

Version of s3fs being used (s3fs --version)

Amazon Simple Storage Service File System V1.86 (commit:746a027) with OpenSSL
Copyright (C) 2010 Randy Rizun rrizun@gmail.com
License GPL2: GNU GPL version 2 https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)

example: 2.9.4
Name : fuse
Version : 2.9.2
Release : 11.el7
Architecture: x86_64
Install Date: Tue 05 May 2020 12:55:25 PM UTC
Group : System Environment/Base
Size : 223297
License : GPL+
Signature : RSA/SHA256, Mon 12 Nov 2018 02:25:34 PM UTC, Key ID 24c6a8a7f4a80eb5
Source RPM : fuse-2.9.2-11.el7.src.rpm
Build Date : Tue 30 Oct 2018 09:32:35 PM UTC
Build Host : x86-01.bsys.centos.org
Relocations : (not relocatable)
Packager : CentOS BuildSystem http://bugs.centos.org
Vendor : CentOS
URL : https://github.com/libfuse/libfuse
Summary : File System in Userspace (FUSE) utilities
Description :
With FUSE it is possible to implement a fully functional filesystem in a
userspace program. This package contains the FUSE userspace tools to
mount a FUSE filesystem.

Kernel information (uname -r)

command result: uname -r
3.10.0-1127.el7.x86_64

GNU/Linux Distribution, if applicable (cat /etc/os-release)

command result: cat /etc/os-release

CentOS 7

s3fs command line used, if applicable

/etc/fstab entry, if applicable

s3bucket /var/www/html fuse.s3fs _netdev,iam_role=s3fs-role,url=http://s3.amazonaws.com,allow_other 0 0

s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)

if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages

Details about issue

This seems similar to #1272

We deploy code into S3 bucket from bitbucket and it seems that the permission set comes back in correct. Uploading the files locally this also happens too.
rwxrwxrwx. 1 root root 0 Jan 1 1970 .
drwxr-xr-x. 3 root root 18 May 5 12:58 ..
drwxr-xr-x. 1 centos centos 0 May 11 08:54 images
-rw-r-----. 1 centos centos 6.6K May 11 09:05 index.html < ----- This file
drwxr-xr-x. 1 centos centos 0 May 11 08:54 scripts
drwxr-xr-x. 1 centos centos 0 May 11 08:54 styles

I can change the chmod locally, but it breaks the metadata. Can anyone assist?

Originally created by @r4yfx on GitHub (May 11, 2020). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1288 ### Additional Information _The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all._ _Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD_ #### Version of s3fs being used (s3fs --version) Amazon Simple Storage Service File System V1.86 (commit:746a027) with OpenSSL Copyright (C) 2010 Randy Rizun <rrizun@gmail.com> License GPL2: GNU GPL version 2 <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. #### Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) _example: 2.9.4_ Name : fuse Version : 2.9.2 Release : 11.el7 Architecture: x86_64 Install Date: Tue 05 May 2020 12:55:25 PM UTC Group : System Environment/Base Size : 223297 License : GPL+ Signature : RSA/SHA256, Mon 12 Nov 2018 02:25:34 PM UTC, Key ID 24c6a8a7f4a80eb5 Source RPM : fuse-2.9.2-11.el7.src.rpm Build Date : Tue 30 Oct 2018 09:32:35 PM UTC Build Host : x86-01.bsys.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : https://github.com/libfuse/libfuse Summary : File System in Userspace (FUSE) utilities Description : With FUSE it is possible to implement a fully functional filesystem in a userspace program. This package contains the FUSE userspace tools to mount a FUSE filesystem. #### Kernel information (uname -r) _command result: uname -r_ 3.10.0-1127.el7.x86_64 #### GNU/Linux Distribution, if applicable (cat /etc/os-release) _command result: cat /etc/os-release_ CentOS 7 #### s3fs command line used, if applicable ``` ``` #### /etc/fstab entry, if applicable ``` s3bucket /var/www/html fuse.s3fs _netdev,iam_role=s3fs-role,url=http://s3.amazonaws.com,allow_other 0 0 ``` #### s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs) _if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages_ ``` ``` ### Details about issue This seems similar to #1272 We deploy code into S3 bucket from bitbucket and it seems that the permission set comes back in correct. Uploading the files locally this also happens too. rwxrwxrwx. 1 root root 0 Jan 1 1970 . drwxr-xr-x. 3 root root 18 May 5 12:58 .. drwxr-xr-x. 1 centos centos 0 May 11 08:54 images -rw-r-----. 1 centos centos 6.6K May 11 09:05 index.html < ----- This file drwxr-xr-x. 1 centos centos 0 May 11 08:54 scripts drwxr-xr-x. 1 centos centos 0 May 11 08:54 styles I can change the chmod locally, but it breaks the metadata. Can anyone assist?
kerem closed this issue 2026-03-04 01:47:54 +03:00
Author
Owner

@r4yfx commented on GitHub (May 11, 2020):

This appeared to be a umask issue. Closing issues - sorry!

<!-- gh-comment-id:626617355 --> @r4yfx commented on GitHub (May 11, 2020): This appeared to be a umask issue. Closing issues - sorry!
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#688
No description provided.