...making Linux just a little more fun!

### Samba access problem from winXP

J. Bakshi [j.bakshi at unlimitedmail.org]

Fri, 17 Jul 2009 00:51:53 +0530

Hello list,

I have configured a samba server which is a standalone file and printer sharing samba. I have no problem to use it from Linux. but strange problem from WinXP box. First of all the XP machine wait long to reach the share and though a mapdrive is possible to create for the share; it is immediately Disconnected after a reboot of the XP. More over a connected mapdrive lost its share path after approx 2 hrs. I am really very confused to see these strange problem in XP box.

Here is my config file I am using for samba ( collected from an online doc )

    #####################
    [global]
    local master = no
    admin users = adminsam
    unix password sync = yes
    force create mode =0774
    utmp = no
    smb ports = 139
    domain logons = no
    domain master = yes
    os level = 55
    passwd program = /usr/sbin/userpasswd %u
    passwd chat = password: %n\n password: %n\n successfully.
       netbios name = ClarkConnect
       workgroup = Enterprise
       server string = ClarkConnect

    bind interfaces only = yes
    interfaces = lo eth0 eth1

    use client driver = yes
    printcap name = /etc/printcap
    load printers = yes

    security = user
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd

    force create mode =0777
    force directory mode =0777
    force user = apache
    deadtime = 10

    #### modification, changing 2 to 1 to minimise log writing ###
    debug level = 1
    syslog = false
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    dns proxy = no
    utmp = yes

    #keep alive = 10
    #deadtime = 5
    max xmit = 4096
    oplocks = yes
    read raw = yes
    write raw = yes
    getwd cache = yes

    # WINS / VPN
    # ----------

    wins support = yes
    wins server =

    # Authconfig adds these
    #----------------------

    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /bin/false
    winbind use default domain = no

    # PDC
    #----

    add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u

    #======== Share Definitions =====

    [printers]
    #printing = cups
    path = /tmp
    browseable = yes
    printable = yes
    public = yes
    guest ok = yes

    [shared]
    comment = Public Shared Folder
    path = /home/shared
    browseable = yes
    guest only = yes
    writable = yes
    public = yes

    #### for www folder with RW access ########
    [WWW]
    comment = WWW
    path = /var/www/html
    browseable = yes
    guest only = no
    writable = yes
    public = no
    force create mode =0777
    force directory mode =0777
    force user = apache
    deadtime = 10

    ####### end #######

Here is some test. the samba server IP is 192.168.1.41

    nmblookup -A 192.168.1.41
    Looking up status of 192.168.1.41
            CLARKCONNECT    <00> -         H <ACTIVE>
            CLARKCONNECT    <03> -         H <ACTIVE>
            CLARKCONNECT    <20> -         H <ACTIVE>
            ENTERPRISE      <1b> -         H <ACTIVE>
            ENTERPRISE      <1e> - <GROUP> H <ACTIVE>
            ENTERPRISE      <00> - <GROUP> H <ACTIVE>

            MAC Address = 00-00-00-00-00-00

    nmblookup -M -- -
    querying  MSBROWSE  on 127.255.255.255
    querying  MSBROWSE  on 192.168.1.255
    querying  MSBROWSE  on 192.168.1.255
    name_query failed to find name __MSBROWSE__#01

Now from a different linux client

    smbclient -L 192.168.1.41 -U tiklu
    Enter tiklu's password:

    Domain=[CLARKCONNECT] OS=[Unix] Server=[Samba 3.0.28-1.1.cc]

            Sharename       Type      Comment
            ---------       ----      -------
            html            Disk      Flexshare -
            prm             Disk      Flexshare -
            realestate      Disk      Flexshare -
            enews           Disk      Flexshare -
            dum             Disk      Flexshare -
     	WWW             Disk      WWW
            IPC$            IPC       IPC Service (ClarkConnect)
            pixma           Printer   pixma
    	Domain=[CLARKCONNECT] OS=[Unix] Server=[Samba 3.0.28-1.1.cc]

            Server               Comment
            ---------            -------

            Workgroup            Master
            ---------            -------
            ENTERPRISE

testparm command has no error. What can I do in my smb.conf file to fix the problem ? Thanks

PS: Kindly CC to me

Top Back