[GH-ISSUE #2339] Unable to set read/write only permissions for files created in bucket #1155

Open
opened 2026-03-04 01:51:47 +03:00 by kerem · 0 comments
Owner

Originally created by @beeritis on GitHub (Oct 5, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2339

Additional Information

Version of s3fs being used (s3fs --version)

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

2.9.9

Kernel information (uname -r)

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

RHEL9.2

How to run s3fs, if applicable

Running via /etc/fstab

s3fs# /mnt/ _netdev,defaults,allow_other,umask=007,uid=0,mp_umask=0007,gid=1000,use_path_request_style,passwd_file=/etc/s3fs,url=https://plos3.westernpower.co.uk/,noexec 0 0

Details about issue

We are able to mount our S3 buckets successfully which is fine. My query is that, no matter what umask is set, whenever a new file is created, it applies executables permissions which we do not want. We would like the permissions to be rw only as although we can limit permissions access to these files that are accessible through the mount , if the file is a bash script for example, we don't want people running them (at least not by default).

E.g.

ls -l  /mnt/<bucketdir>/
-rwxrwx---. 1 root mygroup  8 Oct  5 09:44 example-pems
Originally created by @beeritis on GitHub (Oct 5, 2023). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2339 ### Additional Information #### Version of s3fs being used (`s3fs --version`) <!-- example: V1.91 (commit:b19262a) --> #### Version of fuse being used (`pkg-config --modversion fuse`, `rpm -qi fuse` or `dpkg -s fuse`) 2.9.9 #### Kernel information (`uname -r`) <!-- example: 5.10.96-90.460.amzn2.x86_64 --> #### GNU/Linux Distribution, if applicable (`cat /etc/os-release`) RHEL9.2 #### How to run s3fs, if applicable <!-- Describe the s3fs "command line" or "/etc/fstab" entry used. --> Running via /etc/fstab <!-- Executed command line or /etc/fastab entry --> s3fs#<bucketname> /mnt/<bucketdir> _netdev,defaults,allow_other,umask=007,uid=0,mp_umask=0007,gid=1000,use_path_request_style,passwd_file=/etc/s3fs,url=https://plos3.westernpower.co.uk/,noexec 0 0 ### Details about issue We are able to mount our S3 buckets successfully which is fine. My query is that, no matter what umask is set, whenever a new file is created, it applies executables permissions which we do not want. We would like the permissions to be rw only as although we can limit permissions access to these files that are accessible through the mount , if the file is a bash script for example, we don't want people running them (at least not by default). E.g. ``` ls -l /mnt/<bucketdir>/ -rwxrwx---. 1 root mygroup 8 Oct 5 09:44 example-pems ````
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#1155
No description provided.