[Samba] Locking file access
Carlos
carlos.hollow at gmail.com
Thu Apr 22 18:07:49 UTC 2021
Hi!!
Any ?
Regards;
Em 22/04/2021 09:39, Carlos escreveu:
> Hello!
> I have samba Version 4.14.2 (it was updated to see if the problem was
> solved, samba is compiled), on an Ubuntu 20.04.
>
> My problem is the following, sometimes during the day, a user tries to
> open a file (xml / doc / etc) his session "crashes" (including explore
> it), if another user tries to open this file he also fails, I noticed
> that it seems to me that the file is getting in a special lock ...
>
> Exit the smbstatus:
>
> 135539 12888 DENY_WRITE 0x12019f RDWR LEASE (R)
> /mnt/GLUSTERFS/Borracharia 012_depto. tires (2021)/ warehouse/File.xls
> Tue Apr 20 14:09:45 2021
>
> To solve it, I need to kill this user's open process (which is not the
> first one that crashed, but one that has a file or its session stuck
> in that file), after this "kill", access to the file goes back to all
> users.
>
> Problem happens in several files and random days.
>
> Something that can explain this?
>
>
> My smb.conf
>
> [global]
> workgroup = XXXXXXDC
> realm = INTERNAL.XXXX.com.br
> security = ADS
> username map = /usr/local/samba/etc/user.map
>
> dedicated keytab file = /etc/krb5.keytab
> kerberos method = secrets and keytab
> winbind cache time = 60
>
> winbind max clients = 900
> winbind enum users = Yes
> winbind enum groups = Yes
> winbind use default domain = Yes
> winbind nss info = rfc2307
> winbind refresh tickets = Yes
> winbind nss info = template
> shell template = / bin / bash
> template homedir = / home /% U
>
> idmap config *: backend = tdb
> idmap config *: range = 3000-7999
> idmap config XXXXXXDC: backend = rid
> idmap config XXXXXXDC: range = 10000-999999
>
>
> map acl inherit = Yes
>
> #
> # Disable Cups
> load printers = no
> printcap name = / dev / null
> disable spoolss = yes
> printing = bsd
>
>
>
>
> vfs objects = recycle, full_audit, acl_xattr
>
> recycle: keeptree = yes
> recycle: versions = yes
> recycle: repository = / mnt / GLUSTERFS / Recycle Bin /% U
> recycle: exclude = * .tmp, * .log, * .obj, ~ *. *, * .bak, *
> .iso, * .exe
> recycle: exclude_dir = tmp
> recycle: touch = yes
> recycle: touch_mtime = yes
> full_audit: failure = none
> full_audit: facility = local5
> full_audit: priority = notice
> full_audit: prefix =% u |% I |% S
> full_audit: success = rmdir unlink open write chmod chown mkdir
> full_audit: failure = none
>
> include = /opt/samba/etc/compartamentos.conf
>
>
> ----
>
> My include:
>
> [Borracharia]
> path = / mnt / GLUSTERFS / Borracharia /
>
> read only = no
>
>
>
> ------
>
>
>
> Regards;
>
More information about the samba
mailing list