[SOLVED] Program locked for editing. "Other user" is editing.
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Program locked for editing. "Other user" is editing.
Here's the thing. I'm the only computer user on this dual boot machine. So, who this "Other user" is, I have no idea.
The only program running, as far as I can tell, being new to Linux Mint, is WPS Office, and Firefox. I even restarted the entire system, which you would think would be akin to booting "Other user" off his computer. Unfortunately, upon re-boot, this so called "Other user" is still editing the program in question. So, the system is restricting me to Read Only status, at the moment...
What's the program? Some programs that have a built-in database (for example the gramps genealogy program) put a lock on when you start them up. Then if you forget to shut them down properly, they will still be locked when you try next time. In other words, the "other user" is you. But there should be an option to break the lock.
linux is a multi user system (and windows too). You are not the only one, but there can be different users running [automatically] different services. You are the only user who logged in using your GUI.
Anyway would be nice to know what did you try exactly and what's happened exactly.
Why so many? Primarily, I didn't know if I deleted say Office 2010 if I'd lose the files associated with that program. So...better safe than sorry. Then, I went looking for alternatives to 2010, and I think I found it in WPS. And, some files in Text Maker, and Plan Maker, won't open correctly in WPS, so that's still onboard...So, I have to "re-create" files into WPS since importing doesn't work.
I was on the Internet, in LinuxMint 20.1 with a webpage opened, not even signed in, when I thought it would be a good idea to get that spreadsheet open. (A couple days ago, it opened flawlessly in Linux when I used the "Open With" command, on the context sensitive menu.) Fast forward to today, when I tried to open it with WPS, I received a dialog box that said in effect, that I couldn't edit the file, because the file was being edited by (apparently) me...But you can read it. My choices were: Read, Notify and Cancel. So, I rebooted the entire computer. Unfortunately, I received the same dialog box. (It opened up as expected in Windows) if that makes any difference.
(It opened up as expected in Windows) if that makes any difference.
What you consider trivial might be the most important detail you declined to provide earlier.
Does this indicate the data are on an NTFS filesystem ?.
Did you close the file in Windows ?.
Are you using fast-start in Windows ?.
If it's marked as in-use by Win, the Linux tools will honour that flag.
It's simple:
LO (and to my knowledge also OOo) uses lock files.
Either some other software is really currently editing the document, or one of the lock files got "lost" and you have to remove it manually.
It looks like you edited the file (document) on windows, rebooted to linux and now you cannot edit because it (the document, not the program) is locked by someone else.
That means you did not properly closed that file on windows. You have to close the office program and shut down windows, otherwise similar things may happen.
I think that unlikely - Win and Linux should store the lockfile in different locations.
With LO and OO it's a simple matter of deleting the (hidden) lockfile in the same directory - usually left over after a crash. I know naught of WPS and could find no reference to a lockfile - maybe a similar situation with the automatic backup file. Dunno where it would be, or what it's called.
Ok, that sounds like a good idea. One question though. I make a copy of the original, and rename the copy, then delete the locked file, can I then rename it back to it's original name?
Ok, that sounds like a good idea. One question though. I make a copy of the original, and rename the copy, then delete the locked file, can I then rename it back to it's original name?
Thanks.
You could, but it would be easier to just remove the lock file so it does not remain.
Here is from my system with a file open in LO writer.
Code:
$ ls -al
total 2816
drwxr-xr-x. 2 jvian jvian 4096 Aug 27 12:47 .
drwxr-xr-x. 5 jvian jvian 4096 Aug 18 13:20 ..
-rw-r--r--. 1 jvian jvian 722988 Jun 24 20:46 'Front Cover Claim.odt'
-rw-r--r--. 1 jvian jvian 83 Aug 27 12:47 '.~lock.Front Cover Claim.odt#'
and here is the same data after closing out the file from LO.
Code:
$ ls -al
total 2816
drwxr-xr-x. 2 jvian jvian 4096 Aug 27 12:47 .
drwxr-xr-x. 5 jvian jvian 4096 Aug 18 13:20 ..
-rw-r--r--. 1 jvian jvian 722988 Jun 24 20:46 'Front Cover Claim.odt'
The lockfile is easy to identify and likely will be similar with the other 'office' products you named above.
I am not familiar with WPS office so can't be more specific.
Last edited by computersavvy; 08-27-2021 at 01:23 PM.
I think computersavvy was in their ~/Documents (or some other) folder…not in their $HOME (~), which is what it looks like the OP posted. We’re asking for the ls -la of the directory in which the locked file is located.
That’s where the lockfile is most likely to be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.