[GH-ISSUE #1730] Unable to give only user and group permissions to mount point #887

Open
opened 2026-03-04 01:49:41 +03:00 by kerem · 1 comment
Owner

Originally created by @tars-mistaike on GitHub (Jul 25, 2021).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1730

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)

1.89

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

2.9.9-3

Kernel information (uname -r)

5.8.0-1041-aws

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

NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

/etc/fstab entry, if applicable

s3fs#my-bucket /var/www/html/nextcloud/data fuse _netdev,uid=33,gid=33,allow_other,use_cache=/tmp,url=https://s3.eu-west-1.amazonaws.com,iam_role=ECS-Email-IAM 0 0

also without allow_other

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

I want the mounted dir to have permissions 770, but seem to only be able to give it 700 or 777 by using or omitting the allow_other option. If I use umask, then that messes up all the other containing permissions, so that is no good.

If I don't use allow_other, then try to use chmod, I get the below.

root@mail:/var/www/html/nextcloud# chmod 770 data
chmod: changing permissions of 'data': Input/output error
Originally created by @tars-mistaike on GitHub (Jul 25, 2021). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1730 ### 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) 1.89 #### Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) 2.9.9-3 #### Kernel information (uname -r) 5.8.0-1041-aws #### GNU/Linux Distribution, if applicable (cat /etc/os-release) NAME="Ubuntu" VERSION="20.04.2 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.2 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal #### /etc/fstab entry, if applicable ```s3fs#my-bucket /var/www/html/nextcloud/data fuse _netdev,uid=33,gid=33,allow_other,use_cache=/tmp,url=https://s3.eu-west-1.amazonaws.com,iam_role=ECS-Email-IAM 0 0``` also without allow_other #### 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 I want the mounted dir to have permissions 770, but seem to only be able to give it 700 or 777 by using or omitting the allow_other option. If I use umask, then that messes up all the other containing permissions, so that is no good. If I don't use allow_other, then try to use chmod, I get the below. ``` root@mail:/var/www/html/nextcloud# chmod 770 data chmod: changing permissions of 'data': Input/output error ```
Author
Owner

@tars-mistaike commented on GitHub (Jul 25, 2021):

Of course, now I've logged this after looking for ages, I find the mp_umask option. Problem solved, so this can go away.

<!-- gh-comment-id:886254587 --> @tars-mistaike commented on GitHub (Jul 25, 2021): Of course, now I've logged this after looking for ages, I find the `mp_umask` option. Problem solved, so this can go away.
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#887
No description provided.