how to unlock file

Asked by Mark Rowland

I recently copied a spreadsheet to another computer. Oo has now "locked for editing" my original file and after I have deleted the original, will not allow me to save anything to the original file name. How to I recover my right to edit and name my own files on my own computer?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
Tony Pursell
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please try to "Save as" with different name.

Then try to edit

Revision history for this message
Ian Ace (iaculallad) said :
#2

You can chown the file from the Terminal:

chown user:group filename.ext

OR simply put it as:

chown your_username:your_username filename.ext

HTH.

Revision history for this message
Mark Rowland (mrowland) said :
#3

@marcobra : I can save with a different name and edit that file, but I cannot use the original file name.

@Ian : I cannot chown the file as I have deleted the original, and Oo will not let me reuse the filename.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Save with different name delete original file using nautilus save it as original file not very elegant but i think it works.

Hth

Revision history for this message
Mark Rowland (mrowland) said :
#5

Sorry, that doesn't work. I get the message:

"Error saving document
Object not accessible
Object cannot be accessed due to insufficient user rights"

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

Before to go deeply do you have already simply tried to restart openoffice...?

Revision history for this message
Mark Rowland (mrowland) said :
#7

Tried that, no good.

Revision history for this message
awanti (awanti) said :
#8

Hi,

goto your file properties > Click Permission Tab > You will see 'Owner' 'Group' 'Others' > in Access: just select the 'Read and Write' > at last select Execute option.

That's it

Good Luck

Bye

Revision history for this message
Best Tony Pursell (ajpursell) said :
#9

Have you still got the

.~lock.Your_filename.odt#

file in the folder where the original file was? If you have, you need to delete it. You will need to go View > Show Hidden Files in the File Browser to see it.

Tony

Revision history for this message
Mark Rowland (mrowland) said :
#10

Thanks Tony Pursell, that solved my question.