[Samba] Macintosh sandbox denying access folder
Chad W Seys
cwseys at physics.wisc.edu
Thu Nov 7 22:24:15 UTC 2019
Hi all,
Have any of you had experience with macintosh's sandbox denying
access to a folder served by Samba?
I don't know exactly how to reproduce, so here's everything (?): I'm
running macOS Catalina (10.15.1). In the terminal I start a python
command interpreter.
python
# then
>>>import os
# then I repeatedly list a directory others have been having problems with:
>>> os.listdir('/Volumes/smb/dept-office')
['.quota', '.TemporaryItems', 'admin', 'web-data', '.DS_Store']
# take a break, come back
>>> os.listdir('/Volumes/smb/dept-office')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/Volumes/smb/dept-office'
# uh oh, the directory is gone
# try again
>>> os.listdir('/Volumes/smb/dept-office')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 13] Permission denied: '/Volumes/smb/dept-office'
OK, so I try listing from plain Terminal, same result:
$ ls /Volumes/smb/dept-office
ls: /Volumes/smb/dept-office: Permission denied
Filtering in Console on the name of the directory 'dept-office', this
message:
error 15:49:35.514074-0600 kernel Sandbox: Python(548) System Policy:
deny(13) file-read-data /Volumes/smb/dept-office
So it appears that Sandbox has denied access to the folder! ?
The folder has also disappeared from Finder, but others have not.
I can get access back by unmounting/remounting the share in Finder.
Others running 10.14 have had the same symptom of folders disappearing
until unmount/remount. Possibly the same problem, but I haven't yet
checked their Console logs.
Another possibly relevant fact is that the disappearing folder is
pointed to through a msdfs link in samba.
To be clear, this looks like a Macintosh bug to me, but I though the
Samba mailing list would have a sharp bunch reading it... :)
Thanks for any input!
Chad.
More information about the samba
mailing list