[GH-ISSUE #459] chmod does not work #251

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

Originally created by @ju4npabl0 on GitHub (Aug 7, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/459

Hello!

I was trying to chmod the folders inside the mount point but it doesn't work.

My goals are:

  1. /mnt/mys3bucket/ should have 755 permissions (for chroot)
  2. parent_folder and child_folder should both have 775 permissions

Is this possible to achieve?

Mount Command:

s3fs mys3bucket /mnt/mys3bucket -o use_cache=/tmp -o allow_other -o umask=022 -o iam_role=S3FullAccess -o endpoint=us-east-1

/etc/fstab

s3fs#mys3bucket /mnt/mys3bucket fuse _netdev,use_cache=/tmp,allow_other,umask=022,iam_role=S3FullAccess,endpoint=us-east-1 0 0

Tests:

[root@ec2 ~]# mkdir -pv /mnt/mys3bucket/parent_folder/child_folder
mkdir: created directory ‘/mnt/mys3bucket/parent_folder’
mkdir: created directory ‘/mnt/mys3bucket/parent_folder/child_folder’
[root@ec2 ~]#
[root@ec2 ~]# chmod -Rc 775 /mnt/mys3bucket/parent_folder
mode of ‘/mnt/mys3bucket/parent_folder’ changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x)
mode of ‘/mnt/mys3bucket/parent_folder/child_folder’ changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x)
[root@ec2 ~]#
[root@ec2 ~]# ls -ld /mnt/mys3bucket/ /mnt/mys3bucket/parent_folder /mnt/mys3bucket/parent_folder/child_folder
drwxr-xr-x 1 root root 0 Jan  1  1970 /mnt/mys3bucket/
drwxr-xr-x 1 root root 0 Aug  7 07:48 /mnt/mys3bucket/parent_folder
drwxr-xr-x 1 root root 0 Aug  7 07:48 /mnt/mys3bucket/parent_folder/child_folder
[root@ec2 ~]#   

Thank you!

Originally created by @ju4npabl0 on GitHub (Aug 7, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/459 Hello! I was trying to chmod the folders inside the mount point but it doesn't work. My goals are: 1. /mnt/mys3bucket/ should have 755 permissions (for chroot) 2. parent_folder and child_folder should both have 775 permissions Is this possible to achieve? **Mount Command:** `s3fs mys3bucket /mnt/mys3bucket -o use_cache=/tmp -o allow_other -o umask=022 -o iam_role=S3FullAccess -o endpoint=us-east-1` **/etc/fstab** `s3fs#mys3bucket /mnt/mys3bucket fuse _netdev,use_cache=/tmp,allow_other,umask=022,iam_role=S3FullAccess,endpoint=us-east-1 0 0` **Tests:** ``` [root@ec2 ~]# mkdir -pv /mnt/mys3bucket/parent_folder/child_folder mkdir: created directory ‘/mnt/mys3bucket/parent_folder’ mkdir: created directory ‘/mnt/mys3bucket/parent_folder/child_folder’ [root@ec2 ~]# ``` ``` [root@ec2 ~]# chmod -Rc 775 /mnt/mys3bucket/parent_folder mode of ‘/mnt/mys3bucket/parent_folder’ changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x) mode of ‘/mnt/mys3bucket/parent_folder/child_folder’ changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x) [root@ec2 ~]# ``` ``` [root@ec2 ~]# ls -ld /mnt/mys3bucket/ /mnt/mys3bucket/parent_folder /mnt/mys3bucket/parent_folder/child_folder drwxr-xr-x 1 root root 0 Jan 1 1970 /mnt/mys3bucket/ drwxr-xr-x 1 root root 0 Aug 7 07:48 /mnt/mys3bucket/parent_folder drwxr-xr-x 1 root root 0 Aug 7 07:48 /mnt/mys3bucket/parent_folder/child_folder [root@ec2 ~]# ``` Thank you!
kerem closed this issue 2026-03-04 01:43:41 +03:00
Author
Owner

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

Hi, @ju4npabl0
You run s3fs with umask=022 option, it means umask 022 for all files/directories.
Thus you could not work chmod 0775 to files, if you need to access as 0775 files, you should change umask option value.
Regards,

<!-- gh-comment-id:244584275 --> @ggtakec commented on GitHub (Sep 4, 2016): Hi, @ju4npabl0 You run s3fs with umask=022 option, it means umask 022 for all files/directories. Thus you could not work chmod 0775 to files, if you need to access as 0775 files, you should change umask option value. Regards,
Author
Owner

@gsaslis commented on GitHub (Jan 3, 2017):

@ju4npabl0 are you sure you meant -o umask=022 and not -o mp_umask=022 ?
If it's not a typo, that could be your problem?

<!-- gh-comment-id:270095902 --> @gsaslis commented on GitHub (Jan 3, 2017): @ju4npabl0 are you sure you meant `-o umask=022` and not `-o mp_umask=022` ? If it's not a typo, that could be your problem?
Author
Owner

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

We kept this issue open for a long time.
Is this problem continuing?
We launch new version 1.86, which fixed some problem(bugs).
Please use the latest version.
I will close this, but if the problem persists, please reopen or post a new issue.

<!-- gh-comment-id:478219202 --> @ggtakec commented on GitHub (Mar 30, 2019): We kept this issue open for a long time. Is this problem continuing? We launch new version 1.86, which fixed some problem(bugs). Please use the latest version. 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#251
No description provided.