Read-only .odt file - Solved (at last ! - 16/7/08)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Read-only .odt file - Solved (at last ! - 16/7/08)

Postby T J Tulley on Fri Jul 11, 2008 10:01 am

I have just used the command sudo chmod 660 [filename] to change the permissions of an Open Office text file which shows as "Read-only".

Although the terminal apparently accepted the command (after requiring my password) and returned to prompt (in the directory containing the file) the command doesn't appear to have been obeyed.

In fact, the command ls -l shows all the files in its parent directory as rwxrwx--- i.e., 770. They belong to root and are in group plugdev which includes me as sole user.

So why does it still open and show "Read-only"? This was easy in Word.

And why did it become Read-only?
Last edited by T J Tulley on Wed Jul 16, 2008 1:26 pm, edited 2 times in total.
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
T J Tulley
Level 5
Level 5
 
Posts: 581
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England

Linux Mint is funded by ads and donations.
 

Re: Read-only .odt file

Postby MagnusB on Fri Jul 11, 2008 10:30 am

Is the permissions set in OO.o or in the file?
Try using chown to change the owner of the file...
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Read-only .odt file

Postby Deirdre on Fri Jul 11, 2008 10:52 am

You can find a quick workaround here: http://wiki.services.openoffice.org/wiki/Documentation/FAQ/General/How_can_I_get_an_editable_document_from_a_read_only_document%3F
But seeing the filesystem permissions are correct the read-only flag is set in OpenOffice. Take a look at the documentation and/or the OO website.
Deirdre
Level 1
Level 1
 
Posts: 26
Joined: Thu Jun 26, 2008 4:47 pm

Re: Read-only .odt file

Postby T J Tulley on Fri Jul 11, 2008 11:14 am

Thanks MagnusB - I've done that. $ sudo chown theo *.odt - Password required again (more than 15 minutes since last sudo) and prompt returned after command apparently accepted - but $ ls -l still shows all as belonging to root in group plugdev, rwxrwx--- (The prompt takes me to the directory in which these files are located).

In Open Office (now 2.4) File/Properties doesn't include any mention of a read-only setting. It appears in the bottom line of the frame around the open file.

I was opening the file via a dynamic link in Desktop - but the path in the prompt is to its actual location in /media/sdb1. Opening it from its actual location shows the same status and properties.

Thanks also Deidre - your post arrived while I was typing this - not yet sent. Your link took me to:
"How can I get an editable document from a read only document?
If you press the "Edit File" button in the toolbar while a read-only file is open, you'll get an untitled copy of the file to work with. When you try to save the document you will be prompted for a file name".

It remains to discover whether the edited file will be allowed to over-write the original!
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
T J Tulley
Level 5
Level 5
 
Posts: 581
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England

Re: Read-only .odt file

Postby MagnusB on Fri Jul 11, 2008 12:05 pm

A very simple fix would be to use the Save as function....
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Read-only .odt file

Postby T J Tulley on Fri Jul 11, 2008 1:33 pm

Thanks again MagnusB: It's not as easy as that - I can put the Insertion point wherever I like, but as soon as I try to insert anything, a box appears saying:
"Read-only content cannot be changed. No modifications will be accepted".

The odd thing is that I edited this file earlier today! It is one of a group of files related to my Autobiography, which share a folder. Some are .docs, edited in Open Office and saved as .doc, some were originally .docs and have been saved as .odt. I have retained the .doc format in order to be able to work on them in my laptop, which has only Word97 and an older version of OO, which I will soon update. I am reluctant to leave Word for this until I have satisfactorily working links, in the TOC particularly. At present I have no Windows on my PC and am not particularly anxious to return to it generally. I like Linux Mint - I'm not so keen on Open Office Writer although it copes magnificently with several other MS Office parts.

This file in its File/Properties/General tab says it was created 27/09/2005 by me - that must have been in Word97. It was modified 6/11/2007 which was probably when it was converted to Open Office 2.1; under the Properties/Description tab I see Comments: Revised 19/8/06; copied from laptop 29/8/06.

Fortunately I have today's pre-edit version separately saved (I re-named it before I started because I was going to experiment with the TOC) so not much is lost - but I want to understand the system I'm working with!

Incidentally I have re-created the TOC in this and another document - in both, the page-numbers still don't work as links and this was a valuable feature of the Word TOC. I raised this point in another post a few days ago - somebody responded that they worked for them. Very odd. This is Open Office 2.4 in Elyssa, from which I was expecting great things.
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
T J Tulley
Level 5
Level 5
 
Posts: 581
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England

Re: Read-only .odt file

Postby Deirdre on Fri Jul 11, 2008 2:41 pm

Mentioning TOC and .doc made me remember .. check out this post, it seems to be the problem you encounter: http://user.services.openoffice.org/en/forum/viewtopic.php?f=7&t=7385
The related issue: http://qa.openoffice.org/issues/show_bug.cgi?id=90306

As for further assistance on this and the other issue on the TOC you might be better of seeking assistance at the OO forums, seeing both are pure OO issues.
Deirdre
Level 1
Level 1
 
Posts: 26
Joined: Thu Jun 26, 2008 4:47 pm

Re: Read-only .odt file

Postby T J Tulley on Wed Jul 16, 2008 1:23 pm

Thanks Deirdre- affter a week's delay I have got back to this - after all the changes to Section protections, it appears to be necessary to save as doc before changing back to odt - then it's no longer read only.

A long way to "Solved"!
Yours hopefully -

Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
User avatar
T J Tulley
Level 5
Level 5
 
Posts: 581
Joined: Wed Jul 18, 2007 10:18 am
Location: Hull, England

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], jockotucker, panorain, The Big O and 37 guests