Fix Office File Locks and Temporary Folders on a Network Share
Question details
The user needs to clear stale temporary files or locks that prevent Office documents on a network share from being edited.
- Product
- Microsoft Office for Mac
- Device & OS
- macOS; Windows network share
- Scenario
- Office documents are saved from a Mac to a shared folder hosted on Windows.
- Observed behavior
- Temporary folders or lock files remain on the share, causing documents to open as read-only or blocking other users from editing them.
Ask everyone using the document to save their changes and close it, then confirm that no one is still editing it. Locate the shared folder and identify the original document so it is not mistaken for a temporary file.
Close Office and remove confirmed stale lock files
Use this method when a lock file remains after all users have closed the document.
On the Mac, save your work and choose Quit from each open Office application's menu. Confirm with other users that they have closed the shared document.
Open Applications > Utilities > Activity Monitor and search for the relevant Office application. If an instance is still running, make sure its work is saved and quit it.
In Finder, open the shared folder and press Command-Shift-Period to show hidden files.
In the shared folder, identify the lock file associated with the closed document and move it to the Trash. Examples include an Office owner file beginning with ~$ or a .~lock.DocumentName.ods# file created by another office application.
Open the original document from Finder and check whether you can edit and save it.

Check network-share access and compatibility
Use this method if locks keep returning or the document remains read-only after stale files are removed.
Edit Office Documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office documents. Its format support makes it easy to move existing files into WPS, though it does not fix Microsoft Office network-share locks.

Frequently Asked Questions
Why does my shared document open as read-only?
Another user or an Office instance may still have it open, or a stale lock may remain after an unexpected closure. Check with other users and inspect the shared folder for a confirmed stale lock file.
How do I see hidden lock files on a Mac?
Open the shared folder in Finder and press Command-Shift-Period. Press the same shortcut again to hide hidden files.
Can I delete a ~$ or .~lock file?
You can remove a confirmed stale lock file after everyone has closed the associated document. Do not delete it while someone is editing the file, and do not remove the original document.
What if the lock file keeps coming back?
Ask the Windows share administrator to check active file sessions, folder and share permissions, and compatibility of the Mac-to-Windows network connection.




