Skip to content

Commit

Permalink
Use 2700 as permission for new home folders in EOS (#3621)
Browse files Browse the repository at this point in the history
* Use 2700 as permissions for new home folders in EOS
  • Loading branch information
gmgigi96 authored Jan 25, 2023
1 parent 14c9c5f commit 657d3f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/default-perms-eos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Use 2700 as permission when creating EOS home folder

https://github.com/cs3org/reva/pull/3621
2 changes: 1 addition & 1 deletion pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 657d3f2

Please sign in to comment.