[GH-ISSUE #662] When use uid,gid,umask mount bucket, the permission don't take effect #376

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

Originally created by @nelson-zhong on GitHub (Oct 18, 2017).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/662

When i use umask parameter to mount bucket, ( -o uid=1001 -o gid=1001 -o umask=277), the file and directory permission display 500 (dr-x------, r-x------) from OS , but when i use this user (uid=1001) to create,delete file and directory successful. Normally, umask=277 , don't have write privilege. why i can create and delete?

s3fs version 1.82, fuse version 2.9.2-7,

Originally created by @nelson-zhong on GitHub (Oct 18, 2017). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/662 When i use umask parameter to mount bucket, ( -o uid=1001 -o gid=1001 -o umask=277), the file and directory permission display 500 (dr-x------, r-x------) from OS , but when i use this user (uid=1001) to create,delete file and directory successful. Normally, umask=277 , don't have write privilege. why i can create and delete? s3fs version 1.82, fuse version 2.9.2-7,
Author
Owner

@ggtakec commented on GitHub (Nov 5, 2017):

@nelson-zhong
The creating/deleting files depend on the permissions of the directory storing those files.
That is, when creating "parent/newfile", it depends on the permissions of the "parent" directory.
Please check the permissions of the parent directory of the file you tried to create.
If the parent directory is 500, I think you can not create the file.
If the parent directory is a mount point and you want to change the permissions, you can use the mp_umask option to control it.
Regards,

<!-- gh-comment-id:341955576 --> @ggtakec commented on GitHub (Nov 5, 2017): @nelson-zhong The creating/deleting files depend on the permissions of the directory storing those files. That is, when creating "parent/newfile", it depends on the permissions of the "parent" directory. Please check the permissions of the parent directory of the file you tried to create. If the parent directory is 500, I think you can not create the file. If the parent directory is a mount point and you want to change the permissions, you can use the mp_umask option to control it. Regards,
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#376
No description provided.