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-128710 / 24.04.1 / Add migrations for SMB-related fields #13643

Merged
merged 1 commit into from
May 1, 2024

Conversation

anodos325
Copy link
Contributor

In the DragonFish release we removed the clustering feature from TrueNAS. In prior versions we had some SMB share presets that were exposed only to clustering users via the webui, but were still accessible via the API. These presets existed for TrueCommand purposes to simplify cluster share creation. Unfortunately, some users may have set these via our APIs on non-clustered shares, and so this commit adds a migration to convert them to an appropriate SMB share configuration post-Cobia.

Due to a longstanding bug in SCALE, there were circumstances in which pam_mkhomedir would create the directory /nonexistent when users had SMB homes shares. Starting in dragonfish / is readonly with the result that the pam_session for users with a home directory of /nonexistent to fail, resulting in SMB access being rejected in "obey pam restrictions" is set. This commit adds a migration to force home directories of SMB users to change to /var/empty if it was set to /nonexistent.

In the DragonFish release we removed the clustering feature from
TrueNAS. In prior versions we had some SMB share presets that were
exposed only to clustering users via the webui, but were still
accessible via the API. These presets existed for TrueCommand purposes
to simplify cluster share creation. Unfortunately, some users may have
set these via our APIs on non-clustered shares, and so this commit adds
a migration to convert them to an appropriate SMB share configuration
post-Cobia.

Due to a longstanding bug in SCALE, there were circumstances in which
pam_mkhomedir would create the directory `/nonexistent` when users had
SMB homes shares. Starting in dragonfish / is readonly with the result
that the pam_session for users with a home directory of `/nonexistent`
to fail, resulting in SMB access being rejected in "obey pam
restrictions" is set. This commit adds a migration to force home
directories of SMB users to change to /var/empty if it was set to
/nonexistent.
@bugclerk bugclerk changed the title Add migrations for SMB-related fields NAS-128710 / 24.04.1 / Add migrations for SMB-related fields May 1, 2024
@bugclerk
Copy link
Contributor

bugclerk commented May 1, 2024

@anodos325 anodos325 merged commit 304e0fb into stable/dragonfish May 1, 2024
1 of 2 checks passed
@anodos325 anodos325 deleted the smb-migration-fixup branch May 1, 2024 18:17
@bugclerk
Copy link
Contributor

bugclerk commented May 1, 2024

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 May 1, 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.

4 participants