File Sharing Problems

Fix Office File Locks and Temporary Folders on a Network Share

Rana GarciaRana Garcia Nov 25, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

Close Office and remove confirmed stale lock files

Use this method when a lock file remains after all users have closed the document.

1
Quit Office applications

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.

2
Check for remaining instances

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.

3
Show hidden files

In Finder, open the shared folder and press Command-Shift-Period to show hidden files.

4
Remove the stale lock

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.

5
Reopen the document

Open the original document from Finder and check whether you can edit and save it.

Close Office and remove confirmed stale lock files
Remove only confirmed stale files: Do not delete the original document or an unfamiliar temporary folder. Remove a lock or temporary item only when you can identify it and have confirmed that it is no longer in use.
Free Microsoft Office alternative

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.

Open and edit documents stored in accessible shared foldersCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar interface for a smoother transition from Microsoft OfficeFree, lightweight office suite
microsoft office alternative - wps office

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.