Results 1 to 3 of 3

Thread: 10.04 Samba - Strange issues

  1. #1
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    10.04 Samba - Strange issues

    Ok here's the story, have a few pc's on the network, including a ps2 running SMS player via SMB shares.... Now it all ran perfectly till i decided to upgrade to 10.04 lucid..

    Basically, pc's can access all folders shared form this pc apart from one...

    here's my smb.conf
    Code:
    [global]
        ; General server settings
        netbios name = physics
        server string =
        workgroup = phy101
        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
    
        usershare owner only = False
    
        wins support = yes
    
        printing = CUPS
        printcap name = CUPS
    
        syslog = 1
        syslog only = yes
    
    
    [Auxiliary_5]
        path = /media/S2/Storage/Dump/
        browseable = yes
        read only = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = physics
    
    [Auxiliary_4]
        path = /media/S4/Media_Library_4/
        browseable = yes
        read only = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = physics
    
    [Auxiliary_3]
        path = /media/S3/Media_Library_3/
        browseable = yes
        read only = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = physics
    
    [Auxiliary_2]
        path = /media/S2/Media_Library_2/
        browseable = yes
        read only = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = physics
    
    [Auxiliary_1]
        path = /media/S1/Media_Library_1/
        browseable = yes
        read only = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = physics
    
    [Ps2]
        path = /media/S1/ps2
        browseable = yes
        read only = yes
        guest ok = yes
        create mask = 0644
        directory mask = 0755
    Now that works in 9.10 - and the ps2 could access that one folder without any problems.... But in 10.04 it cant access the ps2 folder despite settings for guest ok, and no force-user or group..

    i get a log error

    Code:
    Jun 17 23:19:19 physics smbd[6124]: [2010/06/17 23:19:19,  0] smbd/service.c:988(make_connection_snum)
    Jun 17 23:19:19 physics smbd[6124]:   canonicalize_connect_path failed for service ps2, path /media/S1/ps2
    No idea wtf is going on or how to fix, all hdd's are ntfs - mounted use ntfs-3g - and the folders they have been mounted into are chmod 0777..

    Would really like to resolve this pronto.

  2. #2
    Join Date
    Dec 2009
    Beans
    6,776

    Re: 10.04 Samba - Strange issues

    With just a quick look at this I have a couple of observations:

    (1) Nautilus-share
    You have one line in your smb.conf that controls how Nautilus-share uses samba to share files:
    Code:
        usershare owner only = False
    It's possible that you have a share definition for the ps2 target using nautilus-share that differs from the one defined in smb.conf. The output of one of the following commands will tell you if that is true:
    Code:
    net usershare info
    sudo net usershare info
    (2) Guest Access.
    You appear to missing a line in smb.conf that enables a remote user to become a guest:
    Code:
       map to guest = bad user
    you need to add that back because the default is "map to guest = never" which means it will never convert an unauthenticated remote user to the guest account.

  3. #3
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: 10.04 Samba - Strange issues

    Ok, thanks for the fast response, but it turns out my issue was fstab related....

    i have changed the mount options as follows


    Code:
    #HDD 1
    /dev/sda5 /media/S1 ntfs-3g defaults,locale=en_US.utf8 0 0
    That fixed all my issues...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •