[Samba] Re: Samba conect/disconect/reconect when browsing or when freeze open/save dialogs

hamacker sirhamacker at gmail.com
Wed Nov 19 12:51:54 GMT 2008


My smb.conf does not have this line :
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
SO_RCVBUF=8192 SO_SNDBUF=8192

So, "SO_KEEPALIVE" sounds good for my problem. Is it corrent add this line ?
About socket options , I found this comment on google search :
http://lists.samba.org/archive/samba/2007-February/129652.html
"Remove it completely. Sockey options should not be needed with Linux kernels
2.4 or layter.  Check out your networking hardware - NICs, HUBs, Switches and
cables - the quality of these have a significant impact on network
performance."

To resolv my problem, I really need socket options or not ?

thanks a lot.


2008/11/19 hamacker <sirhamacker at gmail.com>:
> Hi everybody,
>
> Recently, I change my server to anoter, but I copied all accounts
> linux/samba users to new one.
> I migrate from Ubuntu Server 8.04 to 8.10 server
> It's the same old smb.conf of old machine, but one new problem.
> When logon is OK, but wait 5 minutes or less and when connect remote
> drive for second time by explorer, windows says that "not respoding",
> but wait 30 seconds and reconect drive again, no error, but some users
> dont wait, kill explorer/word/excell process thinking.
>
> I inspect samba logs, looking for "timout", but it's normal, none message error.
>
> My samba version is Version 3.2.3, my distro is Ubuntu Server 8.10
> [amd64] updated.
>
> My smb.conf (PCD) is :
> [global]
>        unix charset = UTF8
>        workgroup = VIDY2005
>        server string = %h server (Samba %v)
>        interfaces = 192.168.1.2, lo
>        bind interfaces only = Yes
>        obey pam restrictions = Yes
>        passwd program = /usr/bin/passwd %u
>        passwd chat = *New*password* %n\n *Please*retype*new*password* %n\n
> *password*successfully*updated*
>        username map = /etc/samba/smbusers
>        unix password sync = Yes
>        lanman auth = Yes
>        client lanman auth = Yes
>        syslog = 0
>        log file = /var/log/samba/log.%m.%U
>        max log size = 10000
>        max xmit = 65535
>        name resolve order = hosts wins bcast
>        time server = Yes
>        deadtime = 15
>        printcap name = cups
>        add user script = /usr/sbin/useradd -m '%u'
>        rename user script = /usr/sbin/usermod -l '%unew' '%uold'
>        delete user script = /usr/sbin/userdel -r '%u'
>        add group script = /usr/sbin/groupadd '%g'
>        delete group script = /usr/sbin/groupdel '%g'
>        add user to group script = /usr/bin/gpasswd -a '%u' '%g'
>        delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
>        set primary group script = /usr/sbin/usermod -g '%g' '%u'
>        add machine script = /usr/sbin/adduser -n -r -g machines -c "Samba
> machine" -d /dev/null -s /bin/false %u
>        logon script = scripts\%u.bat
>        logon path = \\%L\profiles\%U
>        logon home = /home/samba/netlogon
>        domain logons = Yes
>        os level = 100
>        preferred master = Yes
>        domain master = Yes
>        dns proxy = No
>        wins server = 192.168.1.14
>        panic action = /usr/share/samba/panic-action %d
>        idmap uid = 10000-20000
>        idmap gid = 10000-20000
>        template shell = /bin/bash
>        admin users = @info, @ntadmin, gladiston, root, robson, administrador
>        create mask = 0777
>        force create mode = 0777
>        force security mode = 0777
>        directory mask = 0777
>        force directory mode = 0777
>        force directory security mode = 0777
>        cups options = raw
>        preserve case = No
>        short preserve case = No
>        veto files = /*.eml/*.nws/*.{*}/
>        hide files = /thumbs.db/Thumbs.db/autorun.inf/Autorun.inf/
>        veto oplock files = /*.odt/*.doc/*.xls/*.mdb/
>


More information about the samba mailing list