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

NAS-131733 / 25.04 / Fix SMB create and directory mask defaults #14655

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

anodos325
Copy link
Contributor

This is a regression that slipped into large refactor effort to remove clustering vestiges in Electric Eel. The values for default create mask and directory mask became more restrictive than in previous TrueNAS SCALE versions. This commit resets them to old defaults for the directory mask (775) but a slightly more restrictive default for files (664) since execute is generally not desired for newly created files. Tests validating new defaults is also added.

Generally, these values are not used when SMB shares are created with our recommended default configuration (using NFSv4 ACLs with a restricted aclmode) and so impact on userbase during BETA / RC cycles was minimal.

@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title Fix SMB create and directory mask defaults NAS-131733 / 25.04 / Fix SMB create and directory mask defaults Oct 11, 2024
This is a regression that slipped into large refactor effort to
remove clustering vestiges in Electric Eel. The values for
default create mask and directory mask became more restrictive than
in previous TrueNAS versions. This commit resets them to old defaults
for the directory mask (775) but a slightly more restrictive default for
files (664) since execute is generally not desired for newly created
files. Tests validating new defaults is also added.

Generally, these values are not used when SMB shares are created with
our recommended default configuration (using NFSv4 ACLs with a
restricted aclmode) and so impact on userbase during BETA / RC
cycles was minimal.
@anodos325 anodos325 force-pushed the fix-default-smb-masks branch from 1356f94 to 7375aeb Compare October 11, 2024 13:19
@anodos325 anodos325 requested a review from yocalebo October 11, 2024 13:25
@anodos325 anodos325 merged commit 897cf08 into master Oct 11, 2024
2 of 3 checks passed
@anodos325 anodos325 deleted the fix-default-smb-masks branch October 11, 2024 13:27
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants