LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2019, 12:23 AM   #1
deanguenther
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Rep: Reputation: Disabled
Samba 4 write lock problem with MS Word


I'm getting "access denied" with one particular samba 4 home directory NFS share. But only with Microsoft Word, Excel and PowerPoint. If I edit an RTF file in wordpad or notepad and save it back to the samba home share it works. But I get "access denied" if I'm using Word.

On the same NFS mount point I have several Samba shares. Lets call them
1. Share1
2. Public1
3. Home1

This mount point is on my Samba DC. And Samba resends the shares to the Windows clients.

For Share1 and Public1, I can successfully edit a word file and save it back to the share without problem. But on Home1, if I try and edit a word doc and save it back, I get access denied. But as I mentioned above, if I edit an RTF with wordpad or notepad I can edit it and save it back to Home1 without gettihg access denied. The problem only exists with MS Office apps.

The NFS mount is coming from a Debian server. It happens to be a proxmox 5.1-46 64 bit distribution. But the NFS mount comes from the underlying debian layer and not a proxmox VM nor a container.

The Samba DC mounting the debian NFS share is a 64 bit CentOs 6.5 (2.6.32-431.3.1.el6.x86_64). The Samba DC resides on this CentOS 6.5 server.

Note that the NFS share used to be served up by an even older CentOS 5.10 NFS server. I moved the entire terabyte share from the old CentOS 5 server to the newer proxmox 5 (debian) server. And this is when the problem started happening that I can no longer write to the Home1 directory.

I did see discussion on lists about trying "oplocks=no" and
"posix locking=no" in my smb.conf but that didn't help.

Here is part of my smb.conf file:

[global]
workgroup = ABC
realm = ABC.ORG
netbios name = SAMBA1
server role = active directory domain controller
dns forwarder = 192.168.14.254
guest ok = yes
security = user
logon drive = H:
log file = /var/log/samba/%m.log
printcap name = /etc/printcap
[home]
comment = Home Directories
path = /usr/data/Users
writeable = yes
use sendfile = no
#oplocks = no
#posix locking = no
[public1]
comment = All Users
path = /usr/data/public
writeable = yes
#guest ok = yes
admin users = @users
force group = users
create mask = 0660
directory mask = 0771
browseable = yes
use sendfile = yes
[Share1]
comment = Common Users
path = /usr/data/private/Shared1Files
writeable = yes
admin users = deang
valid users = deang
create mask = 0660
directory mask = 0771

My mount points for the old CentOS 5 server and my newer proxmox 5 server are in the CentOS 6 Samba server:

#centos5server:/usr/data /usr/data nfs user,rw,auto,exec,retrans=2,rsize=32768,wsize=32768

proxmox5server:/prox2pool01/USERDATA/data /usr/data nfs rsize=32768,wsize=32768,noatime,auto,rw,exec,nfsvers=3 0 0

What other information would be helpful to add?

thanks -- Dean
 
Old 04-20-2019, 11:23 AM   #2
deanguenther
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Samba 4 write lock problem with MS Word

Here is thread from 2013. It sounds exactly like the problem I have, but I tried the suggested fixes and they aren't working for me.

https://www.linuxquestions.org/quest...rk-4175446588/
 
Old 05-02-2019, 11:56 AM   #3
deanguenther
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
I went ahead and posted my problem to the Samba list. The answer I got back was that using NFS in the manner I was is considered "unreliable". I'll setup Samba on my proxmox server and deliver shares directly to the clients instead of using NFS. -- Dean
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I program in shell script for write a word if it finds another word bal_nair1 Linux - Newbie 9 04-23-2012 07:28 AM
[SOLVED] How do I program in shell script for write a word if it finds another word bal_nair1 Programming 2 04-23-2012 02:41 AM
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 12:26 PM
read/write,write/write lock with smbclient fails swatidas11 Linux - Networking 1 03-10-2010 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:17 AM.

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