LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2021, 08:31 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
LibreOffice Document is locked for editing by: Unknown User


I've posted this question on the ask.libreoffice.com forum, but they seem to be focused on Windows and are not helping much. I just upgraded to Alien Bob's Libreoffice 7.2.0 from 6.4.6 on Slackware-Current; not sure the upgrade bit matters in this case. While creating a document my desktop crashed. After restarting and logging back in I could not edit/save that document. I kept getting the message “Document is locked for editing by: Unknown User”. Saving or copying to a different directory didn’t help. If I told Writer to “Open Copy”, I could edit and save that copy to a different file name, but if I tried to edit that new document I had the same problem. This problem has persisted through re-logins and power downs.

Pretty much all of the “solutions” I have read about are related to Windows and removing .lock files. This is Linux, not Windows. There are no .lock files in any of the directories to which I have copied these documents. I had to complete editing my document in MS Word.

The LibreOffice forum suggested I re-create the profile, which I did resetting to factory. Didn't help. Does anyone have any idea how LibreOffice detects a locked file?

I also restored the profile to before I upgraded or created the document(s). Same error.

Last edited by mfoley; 08-31-2021 at 10:01 AM. Reason: more info
 
Old 08-31-2021, 11:36 AM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
I've already spent too much time on this. I've reverted back to version 6.4.6.2 and now I can open these supposedly locked files without problem. There must be something wrong with the 7.2.0 version.
 
Old 09-21-2021, 02:57 PM   #3
mtmcp
LQ Newbie
 
Registered: Sep 2021
Posts: 1

Rep: Reputation: Disabled
I had this same issue with LibreOffice on Win10 accessing Samba shares hosted with Ubuntu 20.04. To access the network share from two separate machines I have different users created on the Linux machine (let's just say user1 and user2). When I created the file and directory containing the .odt file, I used user1, but when I tried to access later using user2 from Win10 it gave me the "Document is locked for editing by: Unknown User" message.

The fix in this case was to run "sudo chown -R user2:user2 *" in the directory containing my Samba share on the Ubuntu machine. Since user2 will be accessing those files from now on this worked fine, but adding proper groups in your samba config for a network share might fix the issue. When logged in with one user and writing folders/files samba configuration determines what happens on the filesystem.

So, in my case this was a red-herring issue. The error message is misleading because the file was not actually locked, but the Samba file ownership was causing the issue.

Just want to also emphasize that the directory containing the .odt file was also owned by user1 and perhaps this was the issue more-so than the file ownership.

Last edited by mtmcp; 09-21-2021 at 03:06 PM.
 
Old 09-22-2021, 01:06 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks for your detailed reply. The file was on a Samba share, although accessed by Linux, not Windows, and I did check and double-check file ownership and permissions. I even copied the file to different directories, sometimes changing the name. Nothing worked for me until I reverted to a previous version of LibreOffice. When Alien Bob posts a new version, I give it a try.

Last edited by mfoley; 09-22-2021 at 01:07 AM.
 
  


Reply

Tags
libreoffice, lock



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Program locked for editing. "Other user" is editing. Pen guin Linux - Software 22 09-03-2021 12:35 AM
LXer: Icewarp and Collabora are working on Libreoffice Online document editing LXer Syndicated Linux News 0 03-26-2015 06:20 AM
[SOLVED] libreoffice document locked CollieJim Linux - Software 2 06-14-2012 03:03 AM
how do i create a document, then a directory and save the document in it. jtdodge Linux - Newbie 9 06-15-2005 11:03 AM
Convert openoffice document into ms document through cli? bruno buys Linux - Software 0 07-05-2004 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration