set uid gid

This commit is contained in:
chrislu
2025-07-01 20:03:50 -07:00
parent ae1d0a82ce
commit b2849ec435
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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,