[Samba] FIle Locks???

Thomas Rieff trieff at greencaremankato.com
Thu Mar 25 13:24:40 UTC 2021


workgroup = CLS 
server string = %h server (Samba, Ubuntu) 
wins support = yes 
dns proxy = no 
log file = /var/log/samba/log.%m 
max log size = 1000 
syslog = 0 
panic action = /usr/share/samba/panic-action %d 
server role = standalone server 
passdb backend = tdbsam 
unix password sync = yes 
passwd program = /usr/bin/passwd %u 
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . 
pam password change = yes 
map to guest = bad user 

[printers] 
comment = All Printers 
browseable = no 
path = /var/spool/samba 
printable = yes 
guest ok = no 
read only = yes 
create mask = 0700 

[print$] 
comment = Printer Drivers 
path = /var/lib/samba/printers 
browseable = yes 
read only = yes 
guest ok = no 

[gcdata] 
comment = GreenCare Data Files 
path = /gcdata 
valid users = @gcdata 
force group = gcdata 
create mask = 0775 
directory mask = 0775 
writable = yes 
browseable = yes 


[gc] 
comment = GreenCare Data Files 
path = /gcdata/gc 
valid users = @gc 
force group = gc 
create mask = 0775 
directory mask = 0775 
writable = yes 
browseable = yes 
veto oplock files = /*.fxp/*.prg/*.dcx/*.dbf/*.cdx/*.fpt/*.dbc/*.dct/*.sct/*.scx/ 

[gcarchive] 
comment = GreenCare Archive Data Files 
path = /gcdata/gcarchive 
valid users = @gcarchive 
force group = gcarchive 
create mask = 0775 
directory mask = 0775 
writable = yes 
browseable = yes 

[jdh] 
comment = GreenCare Archive Data Files 
path = /gcdata/jdh 
valid users = @jdh 
force group = jdh 
create mask = 0775 
directory mask = 0775 
writable = yes 
browseable = yes 

[tmr] 
comment = TMR Data Files 
path = /tmrdata/tmr 
valid users = @tmr 
force group = tmr 
create mask = 0775 
directory mask = 0775 
writable = yes 
browseable = yes 


Thomas Rieff 
Green Care 
1717 3rd Avenue 
Mankato, MN 56001 


From: "Andrew Walker" <walker.aj325 at gmail.com> 
To: "Thomas Rieff" <trieff at greencaremankato.com> 
Cc: "samba" <samba at lists.samba.org> 
Sent: Thursday, March 25, 2021 8:14:34 AM 
Subject: Re: [Samba] FIle Locks??? 



On Thu, Mar 25, 2021 at 9:06 AM Thomas Rieff via samba < [ mailto:samba at lists.samba.org | samba at lists.samba.org ] > wrote: 


About every 2 -3 weeks we have a software program where the data is on a Samba server and we get a "file access denied " error message. I reboot the server and all is well for a while again. 
Any thoughts on how I can track down the PC that is keeping the file locked? 
Or is there a different configuration that would correct this. 
Tom 




Can you maybe post your smb.conf? 



More information about the samba mailing list