Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder creation ignores umask config #70

Closed
OldManYellsAtCloud opened this issue Nov 19, 2021 · 0 comments
Closed

Folder creation ignores umask config #70

OldManYellsAtCloud opened this issue Nov 19, 2021 · 0 comments

Comments

@OldManYellsAtCloud
Copy link
Contributor

In case umask config is specified in the config, it is only applied on newly created files, but not on folders.

Reproduction:

  1. Run uMTP-responder with a umask config. I used 111.
  2. Connect to a host, and create a folder on the storage.
  3. In the newly created folder create a new file.
  4. On the Linux host where uMTP-responder is running, check the newly created folder and file.

Expected result: both the folder and the file inside the folder have the same permissions, specified by the umask config.

Actual result: the file has correct permissions, but the folder comes with 700 permissions. Using a different Linux user the file might be accessible on its own, but the folder that contains it is not accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant