Hi all, I've been looking for an answer for this issue but Google didn't help. So I resource to the next best thing: the Samba mailing list. Question: Is there a way to automaticaly, after a certain amount of time, unlock a file after, for example, a client crash or network problem? I know how to do it manually of course, but that is, well, cumbersome. I've looked at "keepalive" and "deadtime" but none of them seems to apply/do the job (maybe I'm missing something). And "reset on zero vc = yes" seems to be deprecated/removed. I, somehow, have the feeling that this is a very noobish question, but, for the life of me, I couldn't find an answer. I'm on samba 4.8.5 on Debian stretch running a fileserver as a member of a Samba AD. Any hints? Best regards Carlos
On Thu, Feb 14, 2019 at 12:37:20AM +0000, Carlos Jesus via samba wrote:> Question: Is there a way to automaticaly, after a certain amount of time, > unlock a file after, for example, a client crash or network problem?Try socket options = TCP_NODELAY TCP_KEEPIDLE=240 TCP_KEEPCNT=4 TCP_KEEPINTVL=15 which should remove the connection after 5 minutes. See "man 7 tcp" for the meaning of those values. Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: 0551-370000-0, mailto:kontakt at sernet.de Gesch.F.: Dr. Johannes Loxen und Reinhild Jung AG Göttingen: HR-B 2816 - http://www.sernet.de
Ah, a workaround! I'd seen something like this on an old thread but I've always tried to stay away from socket options. I'll give these a try. Thanks for your help P.S.: strange that I don't see more people "complaining" about this.... Best regards, Carlos Volker Lendecke <Volker.Lendecke at sernet.de> escreveu no dia quinta, 14/02/2019 à(s) 05:38:> On Thu, Feb 14, 2019 at 12:37:20AM +0000, Carlos Jesus via samba wrote: > > Question: Is there a way to automaticaly, after a certain amount of time, > > unlock a file after, for example, a client crash or network problem? > > Try > > socket options = TCP_NODELAY TCP_KEEPIDLE=240 TCP_KEEPCNT=4 > TCP_KEEPINTVL=15 > > which should remove the connection after 5 minutes. See "man 7 tcp" > for the meaning of those values. > > Volker > > -- > SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen > phone: 0551-370000-0, mailto:kontakt at sernet.de > Gesch.F.: Dr. Johannes Loxen und Reinhild Jung > AG Göttingen: HR-B 2816 - http://www.sernet.de >