[Samba] Samba How to kill the locked files from a useraccount by multiple smbd pids

RIVIERE, Jean-Guillaume (SOGETI REGIONS SAS) jean-guillaume.riviere.external at airbus.com
Mon May 19 05:37:04 MDT 2014


Hello,

I would like to how to do to kill the locked files from a useraccount by multiple smbd pids automatically when the session is closed?

####
Details Samba server:

Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Kernel version: SunOS 5.10 Generic_142909-17

Samba version:
Samba version 3.5.6

Smb.conf file section Global:

# smb.conf for Airbus Industries fuer Cluster caxhh926/caxhh927
# Version 1.0
#
# Global parameters
#
[global]
#
# Domain settings
#
workgroup = EU
netbios name = caxhhpnfs05
server string = caxhhpnfs05
security = DOMAIN
encrypt passwords = Yes
password server = de0-dc01.eu.airbus.corp, de0-dc02.eu.airbus.corp, de0-dc03.eu.airbus.corp, fr0-dc01.eu.airbus.corp
password level = 6
username level = 6
lanman auth = No
# ntlm auth = No
log level = 3
max log size = 500
syslog = 0
debug uid = Yes
min protocol = COREPLUS
lm announce = No
preferred master = No
local master = No
domain master = No
browse list = no
enhanced browsing = No
dns proxy = No
wins server = 44.191.123.130 44.191.124.130
wins support = No
create mask = 0660
directory mask = 0770
case sensitive = No
default case = lower
preserve case = Yes
short preserve case = Yes
hide files = /lost+found/
hide dot files = Yes
unix charset = ISO8859-15
display charset = ISO8859-15
dos charset = cp850
map readonly = permissions
socket options = TCP_NODELAY SO_KEEPALIVE
deadtime = 15
interfaces = caxhhpnfs05/255.255.248.0
bind interfaces only = Yes
name resolve order = host wins bcast
#
# Samba directories
#
pid directory = /CCDDB.admin/samba/config/caxhhpnfs05/var/locks
log file = /CCDDB.admin/samba/config/caxhhpnfs05/logs/log.%m
smb passwd file = /CCDDB.admin/samba/config/caxhhpnfs05/private/smbpasswd
private dir = /CCDDB.admin/samba/config/caxhhpnfs05/private
lock dir = /CCDDB.admin/samba/config/caxhhpnfs05/var/locks




smbstatus command:
/usr/local/samba/bin/smbstatus -s /CCDDB.admin/samba/config/caxhhpnfs05/lib/smb.conf | more
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (256) below minimum Windows limit (16384)
params.cm_process() - Processing configuration file "/CCDDB.admin/samba/config/caxhhpnfs05/lib/smb.conf"
Processing section "[global]"
Processing section "[scmondir]"
Processing section "[CCDDB]"
Samba version 3.5.6
PID Username Group Machine
-------------------------------------------------------------------
29229 th89cr th89 hall900067024 (44.165.250.97)
10690 th89bu th89 hall900058297 (44.128.221.224)
22706 th89bu th89 hall900058297 (44.128.221.224)



This is the way which allows identifying the locked files from a useraccount by multiple smbd pids (first column)

> ypcat passwd|grep th16fn
th16fn:xxxxxx:29670:10016:HAM NICOLA FINK:/home/th16fn:/bin/ksh


> /usr/local/samba/bin/smbstatus -s /CCDDB.admin/samba/config/caxhhpnfs05/lib/smb.conf -L |grep 29670
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (256) below minimum Windows limit (16384)
params.cm_process() - Processing configuration file "/CCDDB.admin/samba/config/caxhhpnfs05/lib/smb.conf"
Processing section "[global]"
Processing section "[scmondir]"
Processing section "[CCDDB]"
8659 29670 DENY_NONE 0x81 RDONLY NONE /CCDDB.auto .LINKS Wed May 14 12:34:10 2014
8957 29670 DENY_NONE 0x81 RDONLY NONE /CCDDB.auto .LINKS Wed May 14 12:42:14 2014
3865 29670 DENY_NONE 0x81 RDONLY NONE /CCDDB.auto .LINKS Wed May 14 14:14:02 2014
5611 29670 DENY_NONE 0x81 RDONLY NONE /CCDDB.auto .LINKS Wed May 14 16:04:40 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/preview/a000-84188_25f01_10.png Wed May 14 12:41:53 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/preview/a000-84188_25f01_si.png Wed May 14 12:41:55 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/preview/a000-84188_04ss01_17.png Wed May 14 12:41:51 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/a000-84188_04nn01_17.cdd Wed May 14 12:41:50 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/a000-84188_04ss01_17.cdd Wed May 14 12:41:51 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/a000-84188_04ssc01_1.cdd Wed May 14 12:41:52 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/a000-84188_04zz01_17.cdd Wed May 14 12:41:53 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/a000-84188_25f01_10.cdd Wed May 14 12:41:54 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/a000-84188_25f01_si.cdd Wed May 14 12:41:55 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/preview/a000-84188_04ff01_17.png Wed May 14 12:41:46 2014
8659 29670 DENY_NONE 0x100081 RDONLY NONE /CCDDB.auto . Wed May 14 12:34:02 2014
8957 29670 DENY_NONE 0x100081 RDONLY NONE /CCDDB.auto . Wed May 14 12:42:14 2014
3865 29670 DENY_NONE 0x100081 RDONLY NONE /CCDDB.auto . Wed May 14 14:14:01 2014
5611 29670 DENY_NONE 0x100081 RDONLY NONE /CCDDB.auto . Wed May 14 16:04:39 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/preview/a000-84188_04nn01_17.png Wed May 14 12:41:50 2014
8957 29670 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /CCDDB.auto aw/aw-000/80000/preview/a000-84188_04ssc01_1.png Wed May 14 12:41:52 2014

Regards,
Jean



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.



More information about the samba mailing list