Samba connection error

Discussion in 'Server Operation' started by Unflux, Jul 17, 2008.

  1. Unflux

    Unflux New Member

    Hey,

    I've installed and configured Samba on 5.2. I can see the share folder when I try to map it on the windows client, but when I select the directory and then press finish I get the error:

    "The network path \\server\dir could not be found."

    I find this odd considering it let me browser to the dir in the first place.

    Anyone know what is going on?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you try the IP address instead?
     
  3. Unflux

    Unflux New Member

    Tried using the IP address aswell with no result. I think I may have found the issue though.
     
  4. Unflux

    Unflux New Member

    Seems I didn't find the error. I did a full reinstall of Samba and now I cannot even see the shared directory on Samba.

    The smb.conf I'm using is:

    Code:
    [global]
        ; General server settings
        netbios name = CENTOS
        server string =
        workgroup = GROUP1
        announce version = 5.0
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    
        passdb backend = tdbsam
        security = user
        null passwords = true
        username map = /etc/samba/smbusers
        name resolve order = hosts wins bcast
    
        wins support = yes
    
        printing = CUPS
        printcap name = CUPS
    
        syslog = 1
        syslog only = yes
    
    ; NOTE: If you need access to the user home directories uncomment the
    ; lines below and adjust the settings to your hearts content.
    ;[homes]
        ;valid users = %S
        ;create mode = 0600
        ;directory mode = 0755
        ;browseable = no
        ;read only = no
        ;veto files = /*.{*}/.*/mail/bin/
    
    ; NOTE: Only needed if you run samba as a primary domain controller.
    ; Not needed as this config doesn't cover that matter.
    ;[netlogon]
        ;path = /var/lib/samba/netlogon
        ;admin users = Administrator
        ;valid users = %U
        ;read only = no
    
    ; NOTE: Again - only needed if you're running a primary domain controller.
    ;[Profiles]
        ;path = /var/lib/samba/profiles
        ;valid users = %U
        ;create mode = 0600
        ;directory mode = 0700
        ;writeable = yes
        ;browseable = no
    
    ; NOTE: Inside this place you may build a printer driver repository for
    [print$]
        path = /var/lib/samba/printers
        browseable = yes
        guest ok = yes
        read only = yes
        write list = root
        create mask = 0664
        directory mask = 0775
    
    [printers]
        path = /tmp
        printable = yes
        guest ok = yes
        browseable = no
    
    ; Uncomment if you need to share your CD-/DVD-ROM Drive
    ;[DVD-ROM Drive]
        ;path = /media/cdrom
        ;browseable = yes
        ;read only = yes
        ;guest ok = yes
    
    [shared]
        path = /home/share1/
        browseable = yes
        read only = no
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = root
        force group = root
    I have change the chmod of the /home/share1/ folder to 0777.

    Also added the windows user 07005588 to linux and samba.

    What is it I've missed?
     
  5. ryazkhan

    ryazkhan New Member

    Your order of configs does not look right, try this one
    www.freetech.selfip.info/samba.php
    hope that will help
     

Share This Page