m_gustafsson Apprentice
Joined: 18 Mar 2007 Posts: 243 Location: Sweden
|
Posted: Sun Oct 26, 2008 2:45 pm Post subject: OpenOffice opens files readonly over NFS |
|
|
Hi,
I just upgraded from OpenOffice 2.4.x to 3.0.0, and since then I cannot open some of my documents for writing any more, I am only given read permissions by OpenOffice.
The documents that I cannot open for writing are on a separate disk that I access over my network with NFS. This worked just fine before upgrading OpenOffice to 3.0.0.
I saw in a thread that one should change some lines in the file /usr/lib/openoffice/program/soffice from:
Code: | # file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING |
to:
Code: | # file locking now enabled by default
#SAL_ENABLE_FILE_LOCKING=1
#export SAL_ENABLE_FILE_LOCKING |
I have done this on my client, but still experience the same problem.
As this is still working on another computer of mine I was thinking that it might be because I have different UID and GID on those two comupters, i.e. the working computer and the server have the same UID and GID, while the non-working differ. I solved this earlier by using all_squash, anonuid and anongid in /etc/exports on my server (which is the one storing the OpenOffice files I'd like to open with write permissions):
Code: | # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/home -async,rw,no_subtree_check desktop1 server2(all_squash,anonuid=1000,anongid=1000) matsx60s(all_squash,anonuid=1000,anongid=1000) |
Could it be that my problem is the different UID and GID? But why then did it work with older versions of OpenOffice?
Or, do I have some other problem?
Many thanks for any ideas.
/Mats |
|