Announcement

Collapse
No announcement yet.

Samba server not working after upgrade

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Samba server not working after upgrade

    I think I'm having the same problem with Hardy. Win98 and WinXP machines on my network can see my Kubuntu share, but Hardy box can't see shares on the Win boxes. Here are the active defs from my smb.conf according to the testparm utility:

    [global]
    workgroup = HOMENET
    server string = %h server (Samba, Ubuntu)
    interfaces = eth0, localhost
    map to guest = Bad User
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    name resolve order = lmhosts host bcast
    printcap name = cups
    dns proxy = No
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d
    host msdfs = No
    invalid users = root

    [printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    guest ok = Yes
    printable = Yes
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /etc/samba/drivers
    write list = root

    [DATASHARE]
    path = /datashare
    read only = No
    guest ok = Yes

    I added the line "host msdfs = No" according to a suggested workaround for Bug #95452 in kdenetwork, but it didn't help. Anyone have any further suggestions?

    Comment


      #17
      Re: Samba server not working after upgrade

      Update to the preceding post:

      Using smbclient I can see and "get" the shared files on the WinXP machine. No username needed to connect, and when it asks for a password I just hit Enter. So it looks like the problem may be KDE-related.

      Comment


        #18
        Re: Samba server not working after upgrade

        Second update: SOLVED

        I neglected to mention in the preceding post that to get smbclient to work I had to append the IP address with the -I option. OK, so maybe the problem is in converting NetBIOS names to IP addresses. This is what the lmhosts file is for (see the man page). Added lmhosts file in /etc/samba (where smb.conf lives) and restarted Samba just to be sure, and then it took a few tries before the information propagated and I could see the shares on the WinXP box in Dolphin opened from the "Remote Places" menu entry.

        Only restriction is that to use lmhosts you need to have static IP addresses defined.

        Comment


          #19
          Re: Samba server not working after upgrade

          Although it's the opposite of the problem I had (I had problems with Kubuntu as the server), I had that problem as well. Install the Winbind package and add winbind to the name resolution (I don't remember where that was and am at the wrong machine, but some googling will find it for you) and it will work, even with dynamic IP.

          Comment

          Working...
          X