LibreOffice Document Locked by Unknown User: A Safe Fix

If LibreOffice reports that a document is “locked for editing by an unknown user,” first check whether it is still open in another LibreOffice session or on another computer. If nobody is using it and a previous session ended unexpectedly, close LibreOffice completely, remove only the matching hidden lock file, and reopen the document.

Do not delete a lock simply because the user is listed as unknown. On shared drives or synced folders, it may be protecting unsaved changes made elsewhere.

What does “unknown user” actually mean?

LibreOffice uses lock files to warn about competing edits. The name “unknown user” means the warning does not provide a reliable owner identity; it does not establish that the document is free to edit. A stale lock can remain after a crash, forced shutdown, disconnected network session, or failed cleanup, while an active lock can come from another computer.

The LibreOffice documentation distinguishes its own lock files from optional Microsoft Office lock files. See the LibreOffice 7.6 Getting Started Guide, “Lock files” section. That guide describes the lock-file function, not a universal procedure for deleting them. The following checks help determine whether removal is appropriate.

LibreOffice Writer warning that Budget.odt is locked for editing by an unknown user, with Open Read-Only and Open Copy choices
A LibreOffice Writer warning offers a read-only view or a separate copy when the original document appears locked.

Is someone still editing the document?

Check this before touching the lock file. The safest fix is often to let the existing editor save and close normally.

  1. Check other LibreOffice windows. Look for the same Writer, Calc, or Impress file on your desktop. If it is open, save your work and close that window normally.
  2. Check other computers and accounts. For a document on a shared folder, USB drive, network share, or synchronized directory, ask collaborators whether it is open. Wait for the current editor to finish; confirm that any sync client has completed uploading changes.
  3. Check for a leftover application process. On Windows, open Task Manager with Ctrl+Shift+Esc and look for LibreOffice processes. On Linux, use your desktop system monitor. Close all documents and allow LibreOffice to exit. End a stuck process only after checking that there are no unsaved changes, because force-closing it can lose work.

If the file is urgently needed for reference, use Open Read-Only if the warning offers it. To make independent edits, open a copy and save it under a different filename; do not overwrite the original until concurrent changes have been reconciled. LibreOffice’s Standard Bar documentation confirms that Save As saves under another name or location.

Windows Task Manager Processes page showing a LibreOffice process among running applications
In Windows Task Manager, check whether LibreOffice is still running before treating the document lock as abandoned.

Where is the LibreOffice lock file?

It normally sits in the same folder as the document and is hidden. For a file called Budget.odt, the corresponding LibreOffice lock file commonly has a name like .~lock.Budget.odt#. Match the entire document name, including its extension; a different document has a different lock file.

  1. Windows 11: Open the document’s folder in File Explorer. Choose View > Show > Hidden items. Microsoft documents this control in File Explorer in Windows.
  2. Linux with GNOME Files: Open the same folder and press Ctrl+H, or use Show Hidden Files in the menu. The Ubuntu documentation on hidden files confirms this shortcut for Files; other file managers may use different controls.
  3. Identify the precise match: Look for the .~lock. prefix and trailing #. Do not confuse it with the original .odt, .ods, or .docx document, or with another application’s temporary or backup files.

The LibreOffice community support discussion about documents that will not save identifies an orphaned lock file and a stuck LibreOffice process as possible causes. Neither is proof that every lock is stale.

Windows File Explorer View menu with Hidden items enabled and a lock-file entry beside Budget.odt
Show hidden items in the document folder to find the companion lock file without deleting the document itself.

When is it safe to remove the lock?

Remove it only after confirming that no user or process is editing the same document and that pending cloud or network changes have settled. If ownership remains uncertain, keep the lock and work in a separate copy.

  1. Make a backup copy of the original document, especially if it is important or stored on a shared drive.
  2. Close LibreOffice on the computer you are using. If the file belongs to a shared workflow, verify with the other editors again.
  3. In the document’s folder, delete only the matching .~lock.Budget.odt# file (substitute your document name). Leave Budget.odt untouched. If the lock is recreated immediately, stop: an application or sync process may still have the document open.
  4. Reopen the original document from its normal location, not from a temporary copy, and check whether LibreOffice offers editing without the lock warning.

Deleting the lock removes a coordination signal; it does not merge simultaneous edits, restore unsaved work, or change file ownership and permissions. Never bulk-delete all lock files from a shared directory.

What if the same warning returns?

First, confirm that the document really is no longer open elsewhere. If no matching lock file is visible or LibreOffice cannot create a new one, check whether you can create and delete a harmless test file in that folder. Failure suggests a folder-permission, network, or storage problem rather than an abandoned lock. Check available disk space and the current state of the share or sync client.

If a newly copied document opens normally from a writable local folder, but the original cannot be edited on a network share or synchronized directory, focus on that storage location and coordinate with its administrator or collaborators. Keep the local copy separate until you have confirmed which version is authoritative. Do not disable file locking globally as a shortcut.

If a file can be viewed but remains read-only, check operating-system permissions separately. LibreOffice’s Edit Mode command can enable editing of some read-only documents, but it cannot safely override another editor’s active lock; see the official Standard Bar reference.

How can you verify the lock is gone?

Open the original file, make a small reversible edit, save it, and close LibreOffice normally. Reopen it once more to confirm the warning does not return and your saved change remains present. Then undo the test change if it was only for verification.

While the document is open, a matching lock file may appear; after a clean close it should normally disappear. On shared or synced storage, give the system time to finish its updates before trying again from another computer. If the warning recurs, return to the process and storage checks instead of repeatedly deleting locks.

LibreOffice Writer editing Budget.odt with the Budget Plan heading visible and no lock dialog
The original document is open in Writer without the lock warning; confirm the fix by saving, closing, and reopening it.

Leave a Comment

LibreOffice Document Locked by Unknown User: A Safe Fix

LibreOffice Document Locked by Unknown User: A Safe Fix

Find the cause of a LibreOffice document lock, safely clear a stale lock file, and confirm that you can edit and save without losing changes.

Speed Up Writer by Hiding and Compressing Document Images

Speed Up Writer by Hiding and Compressing Document Images

Make image-heavy Writer files easier to edit: test a reversible display setting, compress oversized pictures in a copy, and verify the saved layout.

Speed Up LibreOffice Startup on Windows 11 and Linux

Speed Up LibreOffice Startup on Windows 11 and Linux

Find out whether a slow launch comes from extensions, profile settings, or the system, then test the safest fix without losing LibreOffice data.

Save LibreOffice Documents Directly to Nextcloud with WebDAV

Save LibreOffice Documents Directly to Nextcloud with WebDAV

Connect LibreOffice to Nextcloud over WebDAV, save the server copy with Ctrl+S, and understand how AutoRecovery differs from cloud syncing.

Bluetooth Adapter Missing on Pardus 23? Start with These Checks

Bluetooth Adapter Missing on Pardus 23? Start with These Checks

Find out whether Pardus 23 is blocking Bluetooth, missing BlueZ, or failing to detect adapter firmware, then confirm the controller works.

Set Gooroom Browser Isolation Through Your Organization’s Policy

Set Gooroom Browser Isolation Through Your Organization’s Policy

Learn how Gooroom separates trusted and untrusted browsing, what users can change, and how an administrator can safely update site policies.

Correct Touchscreen Alignment on Harmonica OS Tablets

Correct Touchscreen Alignment on Harmonica OS Tablets

Diagnose rotated, offset, or inconsistent touch input on a Harmonica OS tablet and choose a Linux calibration method that fits its session and driver.

Set Gooroom OS to English and Check What Stays Translated

Set Gooroom OS to English and Check What Stays Translated

Switch Gooroom’s desktop session to English, verify the locale, and identify when untranslated Korean labels need an app update instead.

Set Up a Windows-Style XFCE Panel on Pardus Linux

Set Up a Windows-Style XFCE Panel on Pardus Linux

Arrange Pardus XFCE as a familiar bottom taskbar with an app menu, pinned launchers, open-window buttons, and a system tray.

Install Flatpak and Snap on Gooroom—After Checking Policy

Install Flatpak and Snap on Gooroom—After Checking Policy

Check your Gooroom release and administrator rules, then follow the official Debian-based setup path for Flatpak or Snap without bypassing system controls.