FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Fedora 26 and I recently noticed that all files opened by libreoffice were in read only mode. Eventually I realised I had just booted into a new kernel (4.13.4-200.fc26.x86_64). I reverted back to the old kernel (4.12.14-300.fc26.x86_64) and all was well.
Now along comes another kernel (4.13.5-200.fc26.x86_64) and the same problem occurs – all files read only. So I am back to 4.12.14. As my version of LO was quite old I downloaded the latest (5.4.2.2) and the problem persists.
My documents are stored on my samba server so I checked a file on my PC. No problem. I am really not sure where the root of the problem lies – a combination of Fedora, LO & Samba?. The last SMB update is dated Sep 24. I can't see any messages in systemctl or the samba logs on both computers (host and server). Has anyone experienced anything similar? I would like to report the bug but which bugzilla? I am tempted to say Fedora.
My first guess would be that it's a permissions issue. Windows does not understand Linux permissions.
The first thing I would do is, on the Samba server, check the permissions of the the document files using the ls -l command and let us know what you find.
Hi Frank and thanks for jogging my memory as I have missed bits - the PCs in question are both running Fedora. The samba server is F25 and my main PC is F26. So the SMB information on my F26 box is largely irrelevant I did not even think about checking permissions but nothing out of the ordinary there (still running the old kernel on the main PC):
Here is the box running libreoffice
Quote:
[tim@eraserhead ~]$ ll /mnt/doco/Docs/Dear\ Diary.odt
-rwxrwxrwx+ 1 tim tim 81340 Oct 25 17:49 '/mnt/doco/Docs/Dear Diary.odt'
while over at the SMB end
Quote:
[tim@Havana ~]$ ll /home/shared/doco/Docs/Dear\ Diary.odt
-rwxrwxrwx. 1 tim tim 81340 Oct 25 17:49 '/home/shared/doco/Docs/Dear Diary.odt'
[tim@Havana ~]$
I'll have to boot the F26 box into one of the contentious kernels to see if permissions are any different. That will be tomorrow as I have run out of time today.
i think these are really weird permissions to have, but who knows, maybe it's a samba thing? :shrugs:
anyhow, with these permissions it MUST be a libreoffice issue, directly or indirectly.
So a solution until SMB3 POSIX extensions are available would be to modify your mount options to force SMB1.
Unfortunately eludes me at the moment. Searches to force SMB1 typically result in how to force SMB2/3 or how to disable SMB1. I tried to use the knowledge gained and modify smb.conf
Quote:
min protocol = SMB1
max protocol = SMB1
However my guess work was wrong
Quote:
[tim@Havana ~]$ testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: Ignoring invalid value 'SMB1' for parameter 'min protocol'
Error loading services.
Any suggestions on how to to modify mount options to force SMB1?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.