[Samba] Samba shares becoming inactive after a while
Greg Folkert
greg at gregfolkert.net
Mon Jun 14 15:01:45 GMT 2004
On Mon, 2004-06-14 at 03:09, Wilfred van Velzen wrote:
> When a user is not using a samba share, after a while they become
> "inactive". When a user wants to access the share again, it takes an
> irritating long time before they get access again. The (windows)
> application that does the accessing is not responding during that
> time. There are no drive letters assigned to the shares in a logon
> script. When I do assign a drive letter to the share (in a test
> situation), this problem doesn't seem to exist. But how can I prevent
> this without assigning drive letters to all the shares?
>
> Here's the global section of my /etc/samba/smb.conf :
>
> [global]
> workgroup = SERCOM
> server string = Samba Server
> encrypt passwords = Yes
> map to guest = Bad User
> time server = Yes
> unix extensions = Yes
> socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
> keepalive = 0
> printcap name = CUPS
> add user script = /usr/sbin/useradd -c Machine -d /dev/null -s
> /bin/false %m$
> domain logons = Yes
> os level = 65
> preferred master = Yes
> domain master = Yes
> printing = cups
> veto files = /*.eml/*.nws/riched20.dll/*.{*}/
>
> I've already experimented with the 'socket options' and 'keepalive'
> options, but these don't seem to make any difference...
From the included docs for Samba:
deadtime (G)
The value of the parameter (a decimal integer) represents the
number of minutes of inactivity before a connection is
considered dead, and it is disconnected. The deadtime only takes
effect if the number of open files is zero.
This is useful to stop a server's resources being exhausted by a
large number of inactive connections.
Most clients have an auto-reconnect feature when a connection is
broken so in most cases this parameter should be transparent to
users.
Using this parameter with a timeout of a few minutes is
recommended for most systems.
A deadtime of zero indicates that no auto-disconnection should
be performed.
Default: deadtime = 0
Example: deadtime = 15
Hope this helps.
--
greg at gregfolkert.net
REMEMBER ED CURRY! http://www.iwethey.org/ed_curry
Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20040614/79a6943d/attachment.bin
More information about the samba
mailing list