Skip to content

Commit

Permalink
feat: change new user directory mode to remove other rwx
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Sep 3, 2022
1 parent e33c619 commit 81256d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nephele-serve/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ try {
fs.mkdirSync(root);
const { uid, gid } = ids(response.locals.user.username);
fs.chownSync(root, uid, gid);
fs.chmodSync(root, 0o750);
}

return new FileSystemAdapter({
Expand Down

0 comments on commit 81256d8

Please sign in to comment.