Folders go into hiding after copy

Im on TrueNAS Scale 25.x. I have set up a Dataset with SMB ACL’s. I am doing a robocopy of files from and old USB drive to the NAS. As soon as the copy begins, the folder “disappears” like its hidden. If I go into the system shell and look under /mnt/ the folders and files are there. I have tried to set the ACLs recursively, added users, open access etc. yet the folder does not show under a Windows drive map. Any ideas? Thanks in advance!!

What is your robocopy command?

Aside from your robocopy command: how do your ACLs look like?

Robocopy F:\ \\<IP OF NAS\DIR\SHARE\ /E /COPY:DAT /DCOPY:T /R:0 /W:0 /MT:8 /XJ, I tried with a more simplistic command omitting the /COPY:DAT and /DCOPY:T, same outcome. Thanks!!!

The Share ACL is WHO: everyone@ Permission: FULL Type: Allow

FILE SYSTEM: OWNER: root/root, ROOT: allow:full control, built-in users: allow/modify, built-in administrators: allow/full control, user - access: allow/Full Control.

If changes are needed easy to do, my thought is because the files are there and I can see them it has to me some weird thing with the directory/files im copying.

Thanks for the help!!!

More info… I just did a cp -R from the shell to a different dataset/share, files are there and I can see them as “normal”. The ACL’s on that share are identical. So it has to be something occurring int he copy, the files are coming from NTFS but I dont see any attributes on the files prior to the robocopy.. plot thickens…

You don’t have a separate user set up just for SMB sharing on TrueNAS? Docs point to a child dataset being owned by a ‘SMBUSER’ and that is used. I don’t know if ROOT ownership is causing your problems. ROOT and ‘admin’ users don’t have SMB sharing be default if you look at their user profiles.

1 Like