LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-03-2007, 07:35 PM   #1
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
Can't edit OO docs over nfs


For some reason when I open an odt or ods file in OpenOffice it opens it as read-only when the file is on an nfs server. I have read/write permissions on both the file and the directory. If I copy the file to a local directory it works ok.

I have understood that file access over nfs was transparent as long as the export was (rw) and the user has appropriate permissions.

Server: Debian 4
Client: Sabayon 3.3

I'd appreciate any insight on what I need to do to get this to work.

Thanks
 
Old 07-03-2007, 10:15 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I wonder if it has to do with the fact that an ODF document is a collection of zipped documents? Does this happen with all Open Office documents or just these two formats?

Can you open a zip collection in ark and then add a file?

My guess is that byte-range-locking is normally performed but this is impossible because the file can't be locked this way because it is a zip file, and needs to be saved over in the end.
This is just a wild guess on my part.

Another possibility is that because it is a zip file, and byte-range locking won't work, to save your changes, a deletion of the original file would need to be performed. If you aren't the owner of the document, and the sticky bit is set on the directory being shared, that is prohibited. A way to test if this is the problem would be to save an original OO document on this share and then try to edit it. Look at the ownership of the document. If the suid or guid on the directory isn't set, changing the ownership or group ownership, can you edit and save the document?

Last edited by jschiwal; 07-03-2007 at 10:24 PM.
 
Old 07-04-2007, 09:14 AM   #3
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Thanks jschiwal for your reply.

I tried it with the wordprocessor, spreadsheet, and impress formats. They all fail when I open them over nfs.

I can zip them and copy the zip to /home and everything opens fine as (rw). Or I can copy an individual file to /home and it works. It's just when I try to open it from the nfs share.

I tried creating a new document and saving it, but got a write error and it created a zero byte file.

When I open the ods file in gnumeric it opens it as read/write and saves it ok in the gnumeric format. That is not an option for other OO formats though. Apparently gnumeric can import but not export opendocument formats. Other applications, such as text editors can also open stuff and save correctly.

I've tried to find OO options that control this sort of thing, but the only thing I found was in the security setting where there is a checkbox saying "open file as read-only" and it is not checked.

I'm stumped.
 
Old 07-04-2007, 07:55 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
I can zip them and copy the zip to /home and everything opens fine
I think that you misunderstood me. An open office document is already a zip file to begin with.

Code:
unzip dummycalc.ods
Archive:  dummycalc.ods
 extracting: mimetype
   creating: Configurations2/statusbar/
  inflating: Configurations2/accelerator/current.xml
   creating: Configurations2/floater/
   creating: Configurations2/popupmenu/
   creating: Configurations2/progressbar/
   creating: Configurations2/menubar/
   creating: Configurations2/toolbar/
   creating: Configurations2/images/Bitmaps/
  inflating: content.xml
  inflating: styles.xml
 extracting: meta.xml
  inflating: Thumbnails/thumbnail.png
  inflating: settings.xml
  inflating: META-INF/manifest.xml
I just found this webpage. The author commented out two lines dealing with filelocking.
http://theopenstandard.com/blogs/ada...-over-NFS.html
 
Old 07-05-2007, 08:06 AM   #5
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Thanks again jschiwal. According to the link you gave me, the discussion there was specific to some versions of SUSE. However the problem appears to exactly what I am experiencing, so when I get home tonight I will try that solution.
 
Old 07-05-2007, 05:15 PM   #6
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Smile

jschiwal, that was exactly the solution I needed. After making the changes as described in the link you provided, my problem has been solved.

Thank you.
 
Old 07-05-2007, 06:06 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
This fix actually introduces a new issue: file locking is disabled so there is a risk of data loss if the document is open more than once at the same time.

A better but less simple to implement solution would be to upgrade to NFSv4.

http://www.vanemery.com/Linux/NFSv4/...no-rpcsec.html
 
Old 07-06-2007, 07:48 AM   #8
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Thanks jlliagre for the heads up. I am aware of this and I have already considered the risks. I only have two local users, including myself. The other users will be managing files via scp until I get a versioning system implemented. Each remote user will be responsible for a distinct set of files, so we won't have many concurrency issues.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM
K-3D docs kenneth.ramsey Linux - Software 4 04-18-2007 11:32 AM
C++ docs aral Programming 5 08-01-2006 12:21 PM
Docs, HOw-Tos Drunkalot Linux From Scratch 3 09-02-2004 05:04 AM
Printing: how to see/edit docs in query. Mega Man X Linux - Software 3 07-28-2003 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration