"operation not allowed" when accessing network drive

I get an "operation not allowed" error in Matlab (only in Matlab) on MacOS when trying to access network-mounted RAID drive
Desktop Mac (1) running Macos 26.3.1, has network-mounted a USB-C external RAID drive connected to older desktop Mac (2) running 15.7.4.
I can view, edit, save etc. files on the (remote) RAID system using terminal windows on (1), using Finder, TextEdit, etc.. But attempting to access folders or files from within Matlab R2024b returns the error "operation not allowed".
Both systems (1) & (2) have Matlab given "full disk access" in Settings>Privacy&Security>FullDiskAccess. Both systems have user given read&write access for shared network drive in Finder>Get_Info, in Unix permissions, and in Settings>Sharing>File_Sharing.
Matlab on (2) can read & write files on the (locally-attached) RAID drive. The problem is only when trying to access the RAID drive from within in Matlab on (1).
smbd also has full disk access (as is clear since terminal and other apps can read & write RAID drive over network connection).
Any suggestions would be appreciated.

5 Kommentare

Walter Roberson
Walter Roberson am 27 Mär. 2026 um 23:33
I do not know what causes this, but a small number of people have reported similar problems.
It is common that the problem involves updating files, but not copying in complete files (to local drives), and sometimes not copying out (to networked drive) complete files.
dpb
dpb am 28 Mär. 2026 um 19:20
As Walter notes, similar symptoms have been reported by others. I think the only chance of any solution will be to contact Mathworks as an official support request/bug at <Product Support Page>
Walter Roberson
Walter Roberson am 28 Mär. 2026 um 21:46
In the case where in-place updates are affected, but not copying entire files in either direction, then the problems are often related to NTFS or SMBD permissions. Copying entire files in only requires read permission on the file. Copying entire files out requires write permission on the directory. Editing a file in place requires write permission on the file. If you do not have write permission on the file, then you have a failure of in-place updates, but not (necessarily) failure to read the entire file or to write the entire file.
Ian
Ian am 28 Mär. 2026 um 23:03
Thanks for the comments.
As stated above, permissions for reading and writing the files seem to be correct, inasmuch as I can read, write, create, delete, etc. files on the network drive (attached to system (2) ) from the either command line or through the finder on system (1). The problem seems to be with MacOS's per-application permissions -- i.e., the permissions for Matlab. However, as near as I can tell, I have the permissions set to allow Matlab to access files, as I've given Matlab "full disk access" (on both systems). There must be some other place I need to set Matlab's permission to access the network-mounted drives, but am at a loss for where to do so.
dpb
dpb am 29 Mär. 2026 um 14:55
I still think Mathworks support should be able to work through what is going on with you to figure out what, specifically, is stumping MATLAB.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

Ian
am 27 Mär. 2026 um 23:21

Kommentiert:

dpb
am 29 Mär. 2026 um 14:55

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by