We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

I never need to lock documents, How can I prevent locking?

asked 2021-07-17 23:21:59 +0200

Perfection gravatar image

Every document I close is automatically locked and I can't open it.

  1. How do I prevent automatic locking?
    1. How do I retrieve all my hard work locked in those documents?
    2. I am not tech savvy please use simple language understandable by a novice.
    3. I am using 7.4.1 version
edit retag flag offensive close merge delete


Every document I close is automatically locked and I can't open it.

That's strange, since "Locking" should not happen after your document is correctly closed (Lock files get deleted on closing a document), So the questions are:

  • Where do you store your files to (local disk, cloud service )?
  • What is the message indicating that the are locked?
  • Do they open read only?
  • Could you find files name .~lock<orig.filename># (If yes, delete 'em all, while LibreOffice is down / "Show Hidden Files" setting required to see such files in Windows File Explorer)

I am using 7.4.1 version

Definitely not - there is no such version.

Opaque gravatar imageOpaque ( 2021-07-18 09:53:10 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2021-07-18 18:18:52 +0200

keme gravatar image

updated 2021-07-18 18:31:32 +0200

I am not tech savvy ...

In that case, you need file locking. Trust me on this. Disabling file locks for files in use is only useful in very special cases, and always carries a risk of accidental data loss.

What you most likely need is to eliminate the reason why files remain locked after you finish your work.

By far, the most common cause for unwanted/persistent file locking is:

  • File is saved to removable media. (USB stick, temporary connectiond to shared network storage).
  • Storage media is subsequently disconnected (pulled the plug, or unmounted network share) before file is properly closed (shut down application or close the document window).

Make sure you finish the work procedure (close document window) and release the storage object before physically disconnecting storage.

edit flag offensive delete link more



Windows can delay writing to the USB drive for a short time after it has said it has written (caching).

Always click the remove USB safely icon which will force the write to complete. When it tells you it is ok to remove,, then you can remove the drive

Earnest Al gravatar imageEarnest Al ( 2021-07-18 21:40:34 +0200 )edit

answered 2021-07-18 09:43:59 +0200

Opaque gravatar image

updated 2021-07-18 09:57:26 +0200


to disable "Locking" feature.

  • Tools -> Options -> Advanced -> Button: Open Expert Configuration
  • Type UseLocking into the search bar and press ENTER or click button: Search
  • Double click the entry org.openoffice.Office.Common\Misc: UseLocking so its "Value" turns to false.

    image description

But I doubt, that your issue is really related to LibreOffice's locking feature.

Hope that helps.

edit flag offensive delete link more

answered 2021-07-18 03:11:19 +0200

Earnest Al gravatar image

Here are two possibilities:

  1. Your anti virus (such as AVG) "locks" the file from further alterations after the first save
  2. Your files are not being closed properly and LO is crashing on close, leaving the lock file in place. A lock file has a name like this .~lock.[filename].odt# in the same folder as the original file (turn on Hidden items in File Explorer > View. Assuming that LibreOffice is closed then deleting this small text file will allow the file to be opened normally again.

1 is easier.

Just add soffice.bin to the list of allowed programs in the anti ransomware settings. Go into settings and then look for something like anti-ransomware or folder protection. Have a look at the blocked apps list, if you see soffice.bin in there change it to Allowed (you might have to read AV help if not obvious). Otherwise go to the Allowed Apps setting and allow soffice.bin, this might not be easy so you might have to change the file type to All to see it and to add the Allowed list. Or you might have to start entering Soffice.bin before you can select it in the navigation dialog

navigation dialog starting to enter name

2 is harder

You haven't given your operating system so I assume Windows. You need to identify why the crash happens.

Get into the habit of saving and closing your files when you have finished working on them. Microsoft implies you can leave files open all the time but Windows will shut them without warning (crash them) if it needs to reboot after an automatic Windows update; this will happen once a month but can be more frequent.

If you are using a laptop on battery, shutting the lid will put the computer to sleep, but when the battery runs down Windows might write everything to disc, might close without saving, or might even crash out. Only the first option keeps your files secure.

I am in the habit of shutting down the computer when I have finished, this means the next time I start, I start with a clean memory. You might naively think that clicking Start Menu > Power > Shut down will shut down your computer in an orderly fashion; it doesn't. The default for new installation of Windows is for Shut down command to be hijacked into Hibernate. You can use Power > Restart to restart the computer from time-to-time.

Or you can change the setting which is placed for your convenience by MS at: Click Start menu > Settings > System > Power & Sleep, in the right-hand pane click the link *Additional power settings, in the new dialog click the link Choose what the power buttons do. In the new window see if the *Turn on Fast startup (recommended) option is ticked, if it is then click the link Change settings that are currently unavailable and untick Fast startup.

There are also other reasons why LO might crash when closing but ... (more)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-07-17 23:21:59 +0200

Seen: 56 times

Last updated: Jul 18