Incorrect share names

Description

Since updating to TrueNAS 12 Beta, there is a strange issue when using Windows where the SMB shares are mapped to the wrong share name. Restarting the SMB service will resolve the issue temporary however after a while the issue comes back again.

This has is happening across multiple windows devices.

i have attached screenshots where the "Media" share under windows is showing as the private share but under the TrueNAS shell the content is correct

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk 
October 21, 2020 at 12:39 PM

Andrew Walker 
October 5, 2020 at 4:00 PM

I can't reproduce the behavior even following your steps let's schedule a teamviewer session so that I can see behavior 1st-hand. You can schedule by emailing me at awalker@ixsystems.com

Andrew Walker 
October 5, 2020 at 12:30 PM

Great! Thanks for posting the steps. I'll start working on a fix.

Billy Bednar 
October 3, 2020 at 6:11 AM
(edited)

I managed to reliability reproduce it:

1. Perform a fresh install of TrueNAS-12.0-RC1.
2. Create user named "user".
3. Create a pool.
4. Create a dataset named "home_shares" with share type SMB. Apply the ACL preset "HOME" and save.
5. Create a dataset named "media" with share type SMB. Apply the ACL preset "OPEN" and save.
6. Create a new share named "media" with the default options.
7. Enable the SMB service when prompted after creating the media share.
8. Create a new share named "home_shares" with the purpose set to "Private SMB Datasets and Shares" and the "Use as Home Share" option enabled. Ignore the ACL editor that opens after creating the share.
9. On a Windows client, enter "\\<ip.of.server>\" at the run dialog and hit enter. Enter the username and password when prompted.
10. Go into the "user" share and create a file named "home".
11. Go back and into the "media" share and create a file named "media".
12. Close the File Explorer window.
13. Open services and restart the "Workstation" service (on the client).
14. Enter "\\<ip.of.server>\" at the run dialog and hit enter. Enter the username and password when prompted.
15. Go into the "user" and "media" shares and confirm they have the correct contents.
16. Close the File Explorer window.
17. Restart the "Workstation" service again.
18. Enter "\\<ip.of.server>\media" at the run dialog and hit enter. Enter the username and password when prompted.
19. The "media" share will open and it will contain the contents of the "user" share.
20. Repeat from step 12 as necessary.

Michael Runge 
September 26, 2020 at 10:02 PM

The net cache flush did not help resolve the issue.   Disabling the per-user share did, however.

I believe that the problem is the per-user configuration which uses the [homes] section.  There is documentation on the Samba site that states this does not work well with Active Directory, and [users] is the appropriate way to configure per-user sharing going forwards.

The relevant documentation can be found here:

https://wiki.samba.org/index.php/User_Home_Folders

I tried to find additional documentation around the [homes] section on the Samba site - though they have old examples that use it, I suspect that it is a now-broken configuration path with the latest versions of Samba.

 

 

 

Complete

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created July 21, 2020 at 10:33 PM
Updated July 1, 2022 at 2:55 PM
Resolved October 21, 2020 at 12:39 PM