Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

set uid gid

chrislub2849ec43564
diff --git a/weed/admin/dash/bucket_handlers.go b/weed/admin/dash/bucket_handlers.go
index e6edaa217a..7fbd74a1ee 100644
--- a/weed/admin/dash/bucket_handlers.go
+++ b/weed/admin/dash/bucket_handlers.go
@@ -307,8 +307,8 @@ func (s *AdminServer) CreateS3BucketWithQuota(bucketName string, quotaBytes int6
IsDirectory: true,
Attributes: &filer_pb.FuseAttributes{
FileMode: uint32(0755 | os.ModeDir), // Directory mode
- Uid: uint32(1000),
- Gid: uint32(1000),
+ Uid: filer_pb.OS_UID,
+ Gid: filer_pb.OS_GID,
Crtime: time.Now().Unix(),
Mtime: time.Now().Unix(),
TtlSec: 0,
diff --git a/weed/admin/handlers/file_browser_handlers.go b/weed/admin/handlers/file_browser_handlers.go
index 0f40188dc0..1ddd6781e0 100644
--- a/weed/admin/handlers/file_browser_handlers.go
+++ b/weed/admin/handlers/file_browser_handlers.go
@@ -191,8 +191,8 @@ func (h *FileBrowserHandlers) CreateFolder(c *gin.Context) {
IsDirectory: true,
Attributes: &filer_pb.FuseAttributes{
FileMode: uint32(0755 | (1 << 31)), // Directory mode
- Uid: uint32(1000),
- Gid: uint32(1000),
+ Uid: filer_pb.OS_UID,
+ Gid: filer_pb.OS_GID,
Crtime: time.Now().Unix(),
Mtime: time.Now().Unix(),
TtlSec: 0,