When saving a Microsoft Word document directly to a SMB share which was mounted using a bookmark and authenticated with an Open Directory "Network User Account", the saved document becomes invisible.
This seems to be caused by the quarantine
flag, which all network shares have when mounted with a bookmark (or AppleScript, for that matter). The flag can be seen by using the mount
command in Terminal.app
:
% mount
//[email protected]/test on /Volumes/test (smbfs, nodev, nosuid, quarantine, mounted by someUser)
Questions:
- Is there a way to create a SMB bookmark that doesn't result in the mounted volume having the
quarantine
flag? - Is there a way to prevent Word.app (or whatever process is responsible) from making the file invisible?
Affected Environment:
- macOS Server versions: macOS 11, 10.15, 10.14, 10.13, 10.12 and possibly others
- macOS Client versions: macOS 11, 10.15 and possibly others
- Word versions: 16.48, 16.46, 16.45 and possibly others
- Local user account type: irrelevant; happens to admins, regular users and guests
- User account type to connect to SMB share: "Network User Account" via Apple Open Directory and possibly other directory accounts
Steps to reproduce:
- Open Finder
- Press Cmd-K to connect to a server
- Enter server address "smb://someServer" (where someServer can be a domain or an IP address)
- Select the entered server address and drag it to the desktop, thereby creating a bookmark to the specified SMB server
- Double-click bookmark the open it. The typical dialog prompting for user credentials should appear.
- Enter your user credentials (of a network user account from Open Directory)
- Mount any share
- Open Word.app
- Create a new document and enter some text
- Save the document on the mounted share
Result: The saved document might appear for an instant, but will then vanish. It can be made visible again using chflags nohidden
, so it actually is saved but just made invisible by some unknown process.
quarantine
flag and documents saved from Word show up as expected.