Samba Timeouts

Support for security such as Firewalls and securing linux
Post Reply
csptra
Posts: 22
Joined: 2016/12/19 19:57:18

Samba Timeouts

Post by csptra » 2017/06/28 17:42:41

Hello,

I was trying to look through samba directives for a samba timeout. I would like to have a timeout if no file is being written.
Would Deadtime work for this?

I would also like to block the shares by IP address.
Edit: I think hosts allow = works on a share level.


Thanks for any help.

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Samba Timeouts

Post by TrevorH » 2017/06/28 18:49:06

Are you talking about mounting a Windows share on CentOS or the other way around? If you're mounting on linux from another server then use autofs as per the "even better method" in the CentOS wiki.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

csptra
Posts: 22
Joined: 2016/12/19 19:57:18

Re: Samba Timeouts

Post by csptra » 2017/06/28 19:55:01

Hello,

I was talking about mounting a centos share (through samba) from a windows box. I apologize, I didn't specify.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Samba Timeouts

Post by hunter86_bg » 2017/06/28 20:02:16

"hosts allow=" and "hosts deny=" directives both work for a specific share and globally (if outside a share stanza). If you wish to use hostnames (or partial) you will need "hostname lookups = yes"
About the timeout ,deadtime should do the trick.

Post Reply