Folders not show on macOS with SMB share

sorinciupitu

Dabbler
Joined
Jan 17, 2021
Messages
16
Hello,

I have a strage problem. I use macOS 12.5.1 on a mac mini M1 and acces a shared folder via SMB from TrueNAS-12.0-U8.1.
The problem is that in a certain folder I don't see all the subfolders, although I checked and they exist there, but I can't see them. Searching doesn't find them either. Do you have any idea what it could be?

Screenshot 2022-08-18 at 17.21.06.png
Screenshot 2022-08-18 at 17.21.22.png
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Typically failure to see all files in a dir can be caused by one of two things:
1) your user lacks permissions for the files in question
2) the files were added after macos client opened the directory. MacOS Finder lacks ability to refresh contents of a dir (relying exclusively on change notify events). The client only receives notify events for files created / modified via SMB protocol and so if file is written via local process, the client may not see it until after unmount / remount.

It's probably case (1) above. The simplest way to ensure users have permissions to the path is to set an ACL on the dataset that grants:
owner@ - FULL_CONTROL - INHERIT
group@ - FULL_CONTROL - INHERIT
group:builtin_users - MODIFY - INHERIT

The separate group:builtin_users entry is important because depending on configuration, MacOS clients may alter owner@ and group@ entries.
 
Top