mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[GH-ISSUE #2786] Overriding Ownership Of Directories #1298
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @michael-nusol on GitHub (Jan 14, 2026).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2786
Additional Information
Version of s3fs being used (
s3fs --version)v1.93 via MacPorts
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)2.9.9
Provider (
AWS,OVH,Hetzner,iDrive E2, ...)AWS
Kernel information (
uname -r)24.6.0
GNU/Linux Distribution, if applicable (
cat /etc/os-release)macOS 15.7.3 Apple Silicon
How to run s3fs, if applicable
[X] command line
[] /etc/fstab
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
I recently joined an org using s3fs to store files generated by a homegrown utility. The folks using it are all on Linux, where the first user created (them) has UID 1000 and GID 1000. I'm running MacOS where my UID is 501 and GID 20.
Initially, I was mounting this bucket with UID=501,GID=20 options (so I could modify), but when I create or modify files via s3fs, the ownership gets overwritten with 501:20 and this has messed up permissions for everyone else.
I found the ahbe_conf parameter, and I am pointing it to a file with these lines:
This is working for files; they're all obtaining correct ownership (1000:1000) but it's not working for directories
michael$ mkdir test_dir michael$ touch test_fyle michael$ ls -lan total 0 drwxr-xr-x 1 501 20 0 Jan 14 13:12 . drwxrwxrwx@ 1 1000 1000 0 Dec 16 04:49 .. drwxr-xr-x 1 501 20 0 Jan 14 13:13 test_dir -rw-r--r-- 1 1000 1000 0 Jan 14 13:13 test_fyleHow do I get it to set ownership 1000:1000 on directories? I would have thought the regex for "everything" in the ahbe_conf file would have grabbed them too...
@michael-nusol commented on GitHub (Jan 14, 2026):
I can't seem to edit that directory listing in my initial post to make it proper multiple lines, but it seems to work here in the comment: