diff --git a/changelog/unreleased/default-perms-eos.md b/changelog/unreleased/default-perms-eos.md new file mode 100644 index 0000000000..6f12c7eb65 --- /dev/null +++ b/changelog/unreleased/default-perms-eos.md @@ -0,0 +1,3 @@ +Bugfix: Use 2700 as permission when creating EOS home folder + +https://github.com/cs3org/reva/pull/3621 \ No newline at end of file diff --git a/pkg/storage/utils/eosfs/eosfs.go b/pkg/storage/utils/eosfs/eosfs.go index c325da26df..7e7237f24f 100644 --- a/pkg/storage/utils/eosfs/eosfs.go +++ b/pkg/storage/utils/eosfs/eosfs.go @@ -1566,7 +1566,7 @@ func (fs *eosfs) createUserDir(ctx context.Context, u *userpb.User, path string, return errors.Wrap(err, "eosfs: error chowning directory") } - err = fs.c.Chmod(ctx, rootAuth, "2770", path) + err = fs.c.Chmod(ctx, rootAuth, "2700", path) if err != nil { return errors.Wrap(err, "eosfs: error chmoding directory") }