[Samba] Samba 4 DC - File locking problems when a client crashes

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Feb 17 08:01:12 MST 2014


On Mon, Feb 17, 2014 at 02:27:18PM +0100, Julian Timm wrote:
> 
> We are using Samba 4.1.4 as a standalone domain controller for 50 Windows 7 Clients.
> If a client crashes or the user hasn't shutdown his computer correctly, smbstatus shows still
> many open files from this user. (like desktop shotcuts, firefox profile and so on.)
> When this user starts his computer again, Windows can't access these files anymore, all desktop shutcuts are missing
> and Firefox won't start and tells the user that Firefox has been already opened.
>  
> At the moment i do the following procedure to resolve this:
> 1. Shutdown the computer of the user
> 2. smbstatus | grep username  (to see what PIDs are still accessing the files of the user)
> 3. kill -9 PID 
> 4. Start the computer
>  
> Is there a better solution for this problem, or maybe an smb.conf option, so that i don't must
> kill all running PIDs manually?

Set

reset on zero vc = yes

in the [global] section of your smb.conf

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba mailing list