[opensuse] editing libreoffice file on samba share
If I open a samba share in Dolphin: smb://hh1/stuff and then click to open a libreoffice file: 1. It opens a cached copy of the file from /var/tmp/kdecache-user to edit. Saving the file saves the cached copy, not the original file. 2. No lock file is created. 3. When I leave libre office it tells me the file has been changed and do I want to upload it. Hopeless for sharing the file as anyone can work on the cached copy It works as expected if the file is on an NFS share. If the file is open, subsequent clicks give a read only copy and you can see the dot file created as a lock. I think the problem is that Samba does not accept the characters used to name the lock file but articles on this are misleading. Does anyone know a workaround or a fix? 11.4 server and client. Thanks. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Oct 20, 2011 at 02:12:48PM +0200, lynn wrote:
If I open a samba share in Dolphin:
smb://hh1/stuff
and then click to open a libreoffice file:
1. It opens a cached copy of the file from /var/tmp/kdecache-user to edit. Saving the file saves the cached copy, not the original file.
2. No lock file is created.
3. When I leave libre office it tells me the file has been changed and do I want to upload it.
Hopeless for sharing the file as anyone can work on the cached copy
It works as expected if the file is on an NFS share. If the file is open, subsequent clicks give a read only copy and you can see the dot file created as a lock.
The NFS export you have mounted. Right? Why don't you mount the Samba share via cifs? Then the same locking mechanism as with NFS would happen. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Thursday 20 Oct 2011 14:22:46 Lars Müller wrote:
On Thu, Oct 20, 2011 at 02:12:48PM +0200, lynn wrote:
If I open a samba share in Dolphin:
smb://hh1/stuff
and then click to open a libreoffice file:
1. It opens a cached copy of the file from /var/tmp/kdecache-user to edit. Saving the file saves the cached copy, not the original file.
2. No lock file is created.
3. When I leave libre office it tells me the file has been changed and do I want to upload it.
Hopeless for sharing the file as anyone can work on the cached copy
It works as expected if the file is on an NFS share. If the file is open, subsequent clicks give a read only copy and you can see the dot file created as a lock.
The NFS export you have mounted. Right?
Why don't you mount the Samba share via cifs? Then the same locking mechanism as with NFS would happen.
Lars
Hi Thanks. I've tried that but unfortunately the lock file is still not created. The share in smb.conf is: [stuff] comment = Shared stuff path = /home/stuff force group = users create mask = 0660 force create mode = 0660 security mask = 0770 directory mask = 0770 force directory mode = 0770 directory security mask = 0770 read only = No Doesn't Samba use cifs when accessing the share anyway? L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Oct 20, 2011 at 04:30:10PM +0200, lynn wrote:
On Thursday 20 Oct 2011 14:22:46 Lars Müller wrote:
On Thu, Oct 20, 2011 at 02:12:48PM +0200, lynn wrote: [ 8< ]
It works as expected if the file is on an NFS share. If the file is open, subsequent clicks give a read only copy and you can see the dot file created as a lock.
The NFS export you have mounted. Right?
Can you please answer the question? Else I'll stop asking further.
Why don't you mount the Samba share via cifs? Then the same locking mechanism as with NFS would happen.
Thanks. I've tried that but unfortunately the lock file is still not created. The share in smb.conf is: [stuff] comment = Shared stuff path = /home/stuff force group = users create mask = 0660 force create mode = 0660 security mask = 0770 directory mask = 0770 force directory mode = 0770 directory security mask = 0770 read only = No
Doesn't Samba use cifs when accessing the share anyway?
No. Samba uses the _local_ filesystem to export it to cifs client systems (like Microsoft Windows, the Linux kernel cifs client, smbclient, the smb kio slave as part of KDE apps via libsmbclient). There is no need to run Samba's smbd, inparticular to configure a share to access a remote share. Please try to keep it simple and stupid (KISS) and quote only needed parts of a mail and nothing further. Thanks. PS while reading all the mask and mode setting from the share I spontaneously got zits. Using "inherit acls = Yes" per share and a default ACL on filesystem level makes thing much easier. That's also the reason why it is this the default for shares in the smb.conf as part of the Samba package. This results in a Linux filesystem environmant which behaves the same way as it does to cifs clients. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
It works as expected if the file is on an NFS share. If the file is open, subsequent clicks give a read only copy and you can see the dot file created as a lock.
The NFS export you have mounted. Right?
Can you please answer the question? Else I'll stop asking further.
Yes, the nfs export is mounted on a client. But the problem isn't with nfs. I mentioned this to compare it to samba.
[stuff]
comment = Shared stuff path = /home/stuff force group = users create mask = 0660 force create mode = 0660 security mask = 0770 directory mask = 0770 force directory mode = 0770 directory security mask = 0770 read only = No
Doesn't Samba use cifs when accessing the share anyway?
No.
Please try to keep it simple and stupid (KISS) and quote only needed parts of a mail and nothing further.
Thanks.
PS while reading all the mask and mode setting from the share I spontaneously got zits.
I got the share syntax as an off list reply to another question I posted yesterday, having tried simpler code myself. The share does what I want. Apart from creating openoffice lock files. smbd is not running on the client. Thanks. L -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Lars Müller
-
lynn