How can I unlock a file locked for editing by DESKTOP/Username?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















How can I unlock the file below on Mint 19?



enter image description here



This is a LibreOffice document I had opened when my PC crashed.










share|improve this question



















  • 1





    Could you edit your question to say which application you are trying to open the file with. Also you might want to explain why you want to forcibly unlock the file.

    – Philip Couling
    Feb 6 at 13:30











  • Your answer below has already solved my problem. Thank you! The application was LibreOffice on host Mint. My PC had crashed when I was editing the file in question on guest Windows in VirtualBox.

    – Matthew Wai
    Feb 6 at 14:40
















0















How can I unlock the file below on Mint 19?



enter image description here



This is a LibreOffice document I had opened when my PC crashed.










share|improve this question



















  • 1





    Could you edit your question to say which application you are trying to open the file with. Also you might want to explain why you want to forcibly unlock the file.

    – Philip Couling
    Feb 6 at 13:30











  • Your answer below has already solved my problem. Thank you! The application was LibreOffice on host Mint. My PC had crashed when I was editing the file in question on guest Windows in VirtualBox.

    – Matthew Wai
    Feb 6 at 14:40














0












0








0








How can I unlock the file below on Mint 19?



enter image description here



This is a LibreOffice document I had opened when my PC crashed.










share|improve this question
















How can I unlock the file below on Mint 19?



enter image description here



This is a LibreOffice document I had opened when my PC crashed.







files linux-mint libreoffice






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 14:50







Matthew Wai

















asked Feb 6 at 13:13









Matthew WaiMatthew Wai

1085




1085







  • 1





    Could you edit your question to say which application you are trying to open the file with. Also you might want to explain why you want to forcibly unlock the file.

    – Philip Couling
    Feb 6 at 13:30











  • Your answer below has already solved my problem. Thank you! The application was LibreOffice on host Mint. My PC had crashed when I was editing the file in question on guest Windows in VirtualBox.

    – Matthew Wai
    Feb 6 at 14:40













  • 1





    Could you edit your question to say which application you are trying to open the file with. Also you might want to explain why you want to forcibly unlock the file.

    – Philip Couling
    Feb 6 at 13:30











  • Your answer below has already solved my problem. Thank you! The application was LibreOffice on host Mint. My PC had crashed when I was editing the file in question on guest Windows in VirtualBox.

    – Matthew Wai
    Feb 6 at 14:40








1




1





Could you edit your question to say which application you are trying to open the file with. Also you might want to explain why you want to forcibly unlock the file.

– Philip Couling
Feb 6 at 13:30





Could you edit your question to say which application you are trying to open the file with. Also you might want to explain why you want to forcibly unlock the file.

– Philip Couling
Feb 6 at 13:30













Your answer below has already solved my problem. Thank you! The application was LibreOffice on host Mint. My PC had crashed when I was editing the file in question on guest Windows in VirtualBox.

– Matthew Wai
Feb 6 at 14:40






Your answer below has already solved my problem. Thank you! The application was LibreOffice on host Mint. My PC had crashed when I was editing the file in question on guest Windows in VirtualBox.

– Matthew Wai
Feb 6 at 14:40











1 Answer
1






active

oldest

votes


















3














Linux has no unified locking mechanism on files. There are various types of advisory locking mechanisms but they don't work on all file systems. This means applications usually use their own mechanism. The most common trick is to create a hidden "lock" file next to the original. If the hidden "lock" file exists, the application will refuse to open the file.



See here for LibreOffice: https://ask.libreoffice.org/en/question/110863/files-locked-for-editing/



Ususally you would remove the lock by closing the application, but with lock files, the application can crash without first removing the file. If this happens you have to remove the file manually.



I suggest you try to view hidden files in the same directory and look for a file named something like:



.~lock.1 Mint 2019.odt#





share|improve this answer
























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499042%2fhow-can-i-unlock-a-file-locked-for-editing-by-desktop-username%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Linux has no unified locking mechanism on files. There are various types of advisory locking mechanisms but they don't work on all file systems. This means applications usually use their own mechanism. The most common trick is to create a hidden "lock" file next to the original. If the hidden "lock" file exists, the application will refuse to open the file.



    See here for LibreOffice: https://ask.libreoffice.org/en/question/110863/files-locked-for-editing/



    Ususally you would remove the lock by closing the application, but with lock files, the application can crash without first removing the file. If this happens you have to remove the file manually.



    I suggest you try to view hidden files in the same directory and look for a file named something like:



    .~lock.1 Mint 2019.odt#





    share|improve this answer





























      3














      Linux has no unified locking mechanism on files. There are various types of advisory locking mechanisms but they don't work on all file systems. This means applications usually use their own mechanism. The most common trick is to create a hidden "lock" file next to the original. If the hidden "lock" file exists, the application will refuse to open the file.



      See here for LibreOffice: https://ask.libreoffice.org/en/question/110863/files-locked-for-editing/



      Ususally you would remove the lock by closing the application, but with lock files, the application can crash without first removing the file. If this happens you have to remove the file manually.



      I suggest you try to view hidden files in the same directory and look for a file named something like:



      .~lock.1 Mint 2019.odt#





      share|improve this answer



























        3












        3








        3







        Linux has no unified locking mechanism on files. There are various types of advisory locking mechanisms but they don't work on all file systems. This means applications usually use their own mechanism. The most common trick is to create a hidden "lock" file next to the original. If the hidden "lock" file exists, the application will refuse to open the file.



        See here for LibreOffice: https://ask.libreoffice.org/en/question/110863/files-locked-for-editing/



        Ususally you would remove the lock by closing the application, but with lock files, the application can crash without first removing the file. If this happens you have to remove the file manually.



        I suggest you try to view hidden files in the same directory and look for a file named something like:



        .~lock.1 Mint 2019.odt#





        share|improve this answer















        Linux has no unified locking mechanism on files. There are various types of advisory locking mechanisms but they don't work on all file systems. This means applications usually use their own mechanism. The most common trick is to create a hidden "lock" file next to the original. If the hidden "lock" file exists, the application will refuse to open the file.



        See here for LibreOffice: https://ask.libreoffice.org/en/question/110863/files-locked-for-editing/



        Ususally you would remove the lock by closing the application, but with lock files, the application can crash without first removing the file. If this happens you have to remove the file manually.



        I suggest you try to view hidden files in the same directory and look for a file named something like:



        .~lock.1 Mint 2019.odt#






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 6 at 13:34

























        answered Feb 6 at 13:29









        Philip CoulingPhilip Couling

        1,255918




        1,255918



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499042%2fhow-can-i-unlock-a-file-locked-for-editing-by-desktop-username%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?