Cannot access a single folder on smb share

Hi all!

I’ve set up an SMB share. I’m the owner and I’m part of the admin group. I can see it on the network. It has all the right folders in it and I can access them all except one. File Explorer tells me that I don’t have permission to access this folder. It also tells me the permissions need to be reordered when I try to change them from Windows.

I ran a FreeNAS server for over a decade. By “ran” I mean set it up and left it alone. But so far, TrueNAS is an intermittent sequence of annoying problems. The folder I’m not allowed to access is top of my list of folders I NEED to access. I mean, it contains the data that is the whole reason I built a NAS.

How about you tell us a bit more, like:

What version of Truenas are you running
What is your SMB configuration
What is the SMB data set configuration
How are your ACLs set
What kind of system are you access the SMB Share from
What specific prompts and errors are you receiving?

That might give us a fighting chance to help you.

1 Like

I have the same problem I am running truenas 24.10.1
i was in Windows File Explore created a new folder then copied a ton of stuff to it. then went to go into the folder and got “windows cannot access \truenas\i\shared contact administrator to request access.”
i am running windows 11
tried creating a new dataset and users to see if I could get them to access
the point being i had permission to create the folder and to copy stuff over now can’t go into the folder seconds after do it.
i am new to all of this so please speak in simple terms. would love to talk on phone with someone

Sorry to be so long getting back and thanks for taking the time to reply.

I’m running TrueNAS Scal 24.10.0.2
The share uses the default parameters. I did not mess with any of the advanced settings.
Also didn’t change any defaults in SMB config except giving the share a name.
I didn’t change any defaults in the datatset config except the owner is set to my backup admin account.
The ACL is currently everyone@ with full basic permissions allowed.
I am accessing from a Windows 10 system. I plan to upgrade it but not until this problem is solved.
When I look at the properties of the share in Windows on the Security tab, it tells me “The permissions on Data (//BOHR) (Z:)) are incorrectly ordered which may cause some entries to be ineffective.”
When I look at Z: I see all the folders and can access them except one. When I try to look inside it, I am told “You do not have permission to access //BOHR/Data/Music. Contact your network administrator to request access.”

Does it not inherit permissions from the parent?

Thanks again for your help!

Was it something else beforehand?

It does if, when you make changes, you check the box to apply it recursively.

Initially, it was full permissions only for TrueNAS admin and limited for everyone else.

I did check the box, in fact several times, but it didn’t do anything.

However I think I’ve fixed it. I opened a shell and did chmod -R 777 Music and now it seems I can access everything.

This started when TrueNAS crashed an external hard drive it was running on, which replaced the usb flash drive I was using for FreeNAS. I replaced it with an SSD and everything seemed fine until I got to this folder. Go figure.

You’re not supposed to use chmod when using ACLs. Normally setting a dataset to preset SMB will lock ACL Mode to “Restricted”, which in turn would have prevented the usage of chmod.

It’s good that your issue appears resolved, but I am not sure if your under-the-hood edit may cause other issues further down the road. Hopefully not.

That’s probably true but I couldn’t suss it out. It runs for now. And I kind of needed it quickly. Thanks for all your help!