Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Help with multiple Samba fileservers on network

  1. #1
    Join Date
    May 2010
    Beans
    143

    Help with multiple Samba fileservers on network

    I week ago I had a perfectly functional network with several Samba fileservers and clients all working happily together. After a power surge and outage and a couple of updates, my network is a mess. I tried Gadmin-samba to salvage my system and it became completely non-functional. I removed the Gadmin-samba and am now slowly trying to get the network shares working again. Nautilus only recognizes some of the computers on the network but not all of them. Nautilus doesn't connect to the network at all on some of the clients but I can get to the share with smb://workgroup/server.

    My first question is: Does Samba server need to be running on each computer with Samba shares and if it does, does each computer need its own smb.conf file?

  2. #2
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    I week ago I had a perfectly functional network with several Samba fileservers and clients all working happily together. After a power surge and outage and a couple of updates, my network is a mess. I tried Gadmin-samba to salvage my system and it became completely non-functional. I removed the Gadmin-samba and am now slowly trying to get the network shares working again.
    Gadmin-samba trashes the configuration file on every host it is installed on.
    Nautilus only recognizes some of the computers on the network but not all of them. Nautilus doesn't connect to the network at all on some of the clients but I can get to the share with smb://workgroup/server.
    The proper form is //SERVER_NAME/share_name. I don't see what the workgroup would be for.
    My first question is: Does Samba server need to be running on each computer with Samba shares and if it does, does each computer need its own smb.conf file?
    Any host that is serving files needs to be up and have a correctly configured smb.conf to operate. The smb.conf file configures the smbd and nmbd daemons (processes). In fact any host that uses Samba for file sharing (either server or client) uses the smb.conf file for configuration.

  3. #3
    Join Date
    May 2010
    Beans
    143

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by redmk2 View Post
    Gadmin-samba trashes the configuration file on every host it is installed on.The proper form is //SERVER_NAME/share_name. I don't see what the workgroup would be for.]

    My mistake. I'm still learning


    [Any host that is serving files needs to be up and have a correctly configured smb.conf to operate. The smb.conf file configures the smbd and nmbd daemons (processes). In fact any host that uses Samba for file sharing (either server or client) uses the smb.conf file for configuration.
    Thanks. That make sense and is the way I set it up.

    On my main fileserver I have all the shares set up the same but one of the files show a mounting error. I will attach the smb.conf file

  4. #4
    Join Date
    May 2010
    Beans
    143

    Re: Help with multiple Samba fileservers on network

    [More Movies]
    path = /media/sdd1/More Movies
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Shared Movies]
    path = /media/sdb1/Shared Movies
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Training videos]
    path = /media/sdd1/Training videos
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Music]
    path = /media/sdd1/Music
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [complete]
    path = /home/movieman/Downloads/complete
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Music videos]
    path = /media/sdd1/Music videos
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [TV]
    path = /media/Time Machine/TV
    writeable = yes
    ; browseable = yes
    guest ok = yes



    All of the shares are accessable except the [TV] shares.

  5. #5
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    [More Movies]
    path = /media/sdd1/More Movies
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Shared Movies]
    path = /media/sdb1/Shared Movies
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Training videos]
    path = /media/sdd1/Training videos
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Music]
    path = /media/sdd1/Music
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [complete]
    path = /home/movieman/Downloads/complete
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [Music videos]
    path = /media/sdd1/Music videos
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [TV]
    path = /media/Time Machine/TV
    writeable = yes
    ; browseable = yes
    guest ok = yes



    All of the shares are accessable except the [TV] shares.
    I beg to differ.

    The path is different. I'll bet the permissions along that path are restricting you. The directories need to have the eXecute bit set for your user or group for you to enter or traverse the directory.

  6. #6
    Join Date
    May 2010
    Beans
    143

    Re: Help with multiple Samba fileservers on network

    "the directories need to have the eXecute bit set"


    I am lost on this point. I guess I thought if it mounted in media, it would be shared.

    FWIW the drives that share fine are NTFS. The drive I am having a problem with is ext4. My network is really all linux so if there is a better way to mount the ext4 drive to share I am open for suggestions. My goal is to have it available to xbmc devices.

  7. #7
    Join Date
    May 2010
    Beans
    143

    Re: Help with multiple Samba fileservers on network

    I changed the way the HD mounts but still am not able to access it.

    smb.conf
    [Music videos]
    path = /media/sdd1/Music videos
    writeable = yes
    ; browseable = yes
    guest ok = yes

    [TV]
    path = /media/sdc1/TV
    writeable = yes
    ; browseable = yes
    guest ok = yes

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

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by redmk2 View Post
    I'll bet the permissions along that path are restricting you.
    @hollywoodpete, Post the output of these 2 commands to see if you have to pay up on redmik2's bet:
    Code:
    ls -al /media/sdd1
    Code:
    ls -al /media/sdc1

  9. #9
    Join Date
    May 2010
    Beans
    143

    Re: Help with multiple Samba fileservers on network

    [ls -al /media/sdd1]
    total 188
    drwxrwxrwx 1 root root 16384 Sep 28 06:57 .
    drwxr-xr-x 6 root root 4096 Dec 12 07:00 ..
    drwxrwxrwx 1 root root 0 Apr 8 2012 Books
    -rwxrwxrwx 1 root root 12292 Apr 18 2012 .DS_Store
    drwxrwxrwx 1 root root 4096 Dec 18 2011 Family avis
    drwxrwxrwx 1 root root 20480 Dec 6 15:35 More Movies
    drwxrwxrwx 1 root root 114688 Dec 8 09:04 Music
    drwxrwxrwx 1 root root 4096 Dec 8 09:24 Music videos
    drwxrwxrwx 1 root root 8192 Oct 28 18:54 Photos
    drwxrwxrwx 1 root root 0 Jan 10 2010 Stand-up Comedy
    drwxrwxrwx 1 root root 4096 Jan 14 2012 Training videos
    drwxrwxrwx 1 root root 0 Sep 27 2011 .Trash-1000

  10. #10
    Join Date
    May 2010
    Beans
    143

    Re: Help with multiple Samba fileservers on network

    [ls -al /media/sdc1]
    total 36
    drwx------ 6 movieman movieman 4096 Jul 7 23:36 .
    drwxr-xr-x 6 root root 4096 Dec 12 07:00 ..
    drwxrwxr-x 2 movieman movieman 4096 Jul 13 17:36 Downloads
    drwx------ 2 root root 16384 Jun 24 22:17 lost+found
    drwx------ 5 movieman movieman 4096 Jul 6 19:53 .Trash-1000
    drwxrwxrwx 34 movieman movieman 4096 Dec 8 22:00 TV

Page 1 of 3 123 LastLast

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
  •