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

Allow custom umask setting #4896

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

BlackDex
Copy link
Collaborator

@BlackDex BlackDex commented Aug 26, 2024

To provide a way to add more security regarding file/folder permissions this PR adds a way to allow setting a custom UMASK variable.

This allows people to set a more secure default like only allowing the owner the the process/container to read/write files and folders.

Examples:

  • UMASK=022 File: 644 | Folder: 755 (Default of the containers)
    This means Owner read/write and group/world read-only

  • UMASK=027 File: 640 | Folder: 750
    This means Owner read/write, group read-only, world no access

  • UMASK=077 File: 600 | Folder: 700
    This means Owner read/write and group/world no access

resolves #4571

To provide a way to add more security regarding file/folder permissions
this PR adds a way to allow setting a custom `UMASK` variable.

This allows people to set a more secure default like only allowing the
owner the the process/container to read/write files and folders.

Examples:
 - `UMASK=022` File: 644 | Folder: 755 (Default of the containers)
   This means Owner read/write and group/world read-only
 - `UMASK=027` File: 640 | Folder: 750
   This means Owner read/write, group read-only, world no access
 - `UMASK=077` File: 600 | Folder: 700
   This measn Owner read/write and group/world no access

resolves dani-garcia#4571

Signed-off-by: BlackDex <black.dex@gmail.com>
@dani-garcia dani-garcia merged commit 92f1530 into dani-garcia:main Aug 27, 2024
3 checks passed
@BlackDex BlackDex deleted the allow-custom-umask branch August 27, 2024 18:16
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

Successfully merging this pull request may close these issues.

Newly created configuration files are world readable
3 participants