Libre office documents will only open as read only

I upgraded from a 32 bit to a 64 bit pc. My libre office documents will now only open as read only. There are no ~lock files. Opening in linux on a dual boot m/c

It is possible that there is a difference between the file permissions as they were on the old computer and the new computer, perhaps related to the user name? In any case, check that the file permissions allow your current username to both read and write the LO files.

If this answer helped you, please accept it by clicking the check mark :heavy_check_mark: to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.

Woks now. Thanks to those who replied.

This a matter of file owner’s permissions. If the file was not created under the same user-id as the one you are using for reading, permissions for group or “others” are in effect depending on the current group-id.

During your upgrade, the user-ids and group-ids may have changed if you created them in a different order. The numeric encoding for the initial ones remained on the disc, resulting in the conflict you experienced.

Your options is either to restore the old id’s or to re-own the files.

  • restore old id’s

If there is no corresponding user and and group for UID and GID, command ls -l will list numeric UID and GID. Then you can reassign those id’s to your user-id (under root mode) with (adapt to your configuration)

   usermod -u 999 mynewuser` and `groupmod -g 999 mynewgroup
  • re-own files

    • if you happen to known your old UID and GID, you can do a system-wide operation with

         find / -group 999 -exec chgrp -h mynewgroup {} \;
         find / -user 999 -exec chown -h mynewuser {} \;
    • otherwise, you must process each directory manually with chown and chgrp commands

Use man <command> for details.

In the simplest case, when UID and GID are correct, you may solve the issue by changing permissions on the files with chmod o+rw g+rw o=r <file-name>.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!