set uid gid
This commit is contained in:
@@ -307,8 +307,8 @@ func (s *AdminServer) CreateS3BucketWithQuota(bucketName string, quotaBytes int6
|
|||||||
IsDirectory: true,
|
IsDirectory: true,
|
||||||
Attributes: &filer_pb.FuseAttributes{
|
Attributes: &filer_pb.FuseAttributes{
|
||||||
FileMode: uint32(0755 | os.ModeDir), // Directory mode
|
FileMode: uint32(0755 | os.ModeDir), // Directory mode
|
||||||
Uid: uint32(1000),
|
Uid: filer_pb.OS_UID,
|
||||||
Gid: uint32(1000),
|
Gid: filer_pb.OS_GID,
|
||||||
Crtime: time.Now().Unix(),
|
Crtime: time.Now().Unix(),
|
||||||
Mtime: time.Now().Unix(),
|
Mtime: time.Now().Unix(),
|
||||||
TtlSec: 0,
|
TtlSec: 0,
|
||||||
|
|||||||
@@ -191,8 +191,8 @@ func (h *FileBrowserHandlers) CreateFolder(c *gin.Context) {
|
|||||||
IsDirectory: true,
|
IsDirectory: true,
|
||||||
Attributes: &filer_pb.FuseAttributes{
|
Attributes: &filer_pb.FuseAttributes{
|
||||||
FileMode: uint32(0755 | (1 << 31)), // Directory mode
|
FileMode: uint32(0755 | (1 << 31)), // Directory mode
|
||||||
Uid: uint32(1000),
|
Uid: filer_pb.OS_UID,
|
||||||
Gid: uint32(1000),
|
Gid: filer_pb.OS_GID,
|
||||||
Crtime: time.Now().Unix(),
|
Crtime: time.Now().Unix(),
|
||||||
Mtime: time.Now().Unix(),
|
Mtime: time.Now().Unix(),
|
||||||
TtlSec: 0,
|
TtlSec: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user