[GH-ISSUE #1799] Is there any way I can set the context while mounting in s3fs #919

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

Originally created by @zhengle2008 on GitHub (Oct 29, 2021).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1799

I have to mount a S3 bucket to centos7 using s3fs.

Once the bucket mounted, I used Samba to share the content to a Windows machine.
while trying to change content for Samba sharing I get the below error:

[root@centoshost /]$ sudo chcon -t samba_share_t /s3fs-ed/
chcon: failed to change context of ‘/s3fs-ed/’ to ‘system_u:object_r:samba_share_t:s0’: Operation not supported.

Is there any way I can set the context while mounting in s3fs? eg:

mount /src /des -o context="system_u:object_r:samba_share_t:s0"
Originally created by @zhengle2008 on GitHub (Oct 29, 2021). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1799 I have to mount a S3 bucket to centos7 using s3fs. Once the bucket mounted, I used Samba to share the content to a Windows machine. while trying to change content for Samba sharing I get the below error: ``` [root@centoshost /]$ sudo chcon -t samba_share_t /s3fs-ed/ chcon: failed to change context of ‘/s3fs-ed/’ to ‘system_u:object_r:samba_share_t:s0’: Operation not supported. ``` Is there any way I can set the context while mounting in s3fs? eg: ``` mount /src /des -o context="system_u:object_r:samba_share_t:s0" ```
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#919
No description provided.