Announcement

Collapse
No announcement yet.

Samba: simple home network

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

    Samba: simple home network

    Hello,

    Although I've been a linux user since a year or so, I've only been using Kubuntu since Feisty Fawn, so far, I've had no significant problems with Feisty, so I'm really enthousiastic about it

    I've never had the need for a home network, so I've never worked with Samba before. My needs are as follows:
    We have three computers at home. Two of those run Linux only, the third dual-boots Linux and WindowsXP. I'd like to have a shared directory, /home/[user]/shared, on every Linux installation and a shared folder on Windows D:\Shared. I've managed to get the computers to detect each others shared folders, but when I try to browse the shared directory on another computer SMB4K asks for authentication. At first I assumed that it wanted me to enter my regular username and password, this didn't work however. Does anyone know what I'm doing wrong and how I can correct it?

    Thank you

    #2
    Re: Samba: simple home network

    I have the same problem here, I found this and I'm going to try it later to see if it works for me.

    http://kubuntuforums.net/forums/inde...42.0;topicseen
    ~$sudo make me a sandwich

    Comment


      #3
      Re: Samba: simple home network

      I seem to be able to mount folders on my windows machines without any authenication, but I have to enter a valid user name and password to access the shared folders on my other linux machines. It has to be a user name and password with samba access on that machine. One other thing, I have the block checked to use superuser to mount and unmount under Tools>Configuresmb4k>Superuser. I think,IIRC, that I had problems until I did that. Smb4k requires a little experimentation with different settings to get everything working, but mine works without a hitch now. All my folders are automatically mounted in my home directory when I boot up. It does ask for my password once when first starting up.

      Comment


        #4
        Re: Samba: simple home network

        I have been using Samba for three years to network Linux Computers with Windows Computers, and had no real problems since reading the manual pages for Smb.conf.

        But now that I have installed Kubuntu 7.04 Feisty Fawn, I cannot get that computer to share anything on the network.

        Can anyone tell me what is meant by "SMB4K". Is that a new release of Samba?

        Anyway. After reading about all the problems with Samba sharing on Kubuntu Feisty, I decided to try something which has worked on every other Debian distro that I have.
        1. Reboot the Kubuntu Machine.
        2. In a terminal window, enter these two commands:
        Code:
        sudo smbd stop
        sudo nmbd stop
        Next, I over-wrote my /etc/samba/smb.conf file with an old configuration file (which worked under Kubuntu 6.04) which I am including here. (commented for my own understanding)

        Code:
        #======================= Global Settings ============================
        [global]
        ## Basic Server Settings
        
        # workgroup = NT-Domain-Name or Workgroup-Name
        # netbios name is equivalent to Full computer name in Windows
        # announce version is the major & minor version numbers that nmbd
        # will use when announcing itself as a server
        # server string controls what will show up next to the ipc connection
        # in net view. It can be any string you like.
        # %v gets replaced by Samba version number
        # %h gets replaced by hostname
        workgroup = LOCALNET
        netbios name = SANDY
        announce version = 5.0
        server string = %h (My Linux Desktop)
        
        # no comment here... This just seems to be right
        dns proxy = no
        
        # socket options are controls on the networking layer of the OS which
        # allow tuning of the connection
        # Most people will find that these options give better performance.
        # See speed.txt and the manual pages for details
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
        SO_RCVBUF=8192 SO_SNDBUF=8192
        
        # Security mode. Most people will want user level security. See
        # security_level.txt for details.
        # setting this to share eliminates logons and passwords
        security = share
        
        ## Network Browsing
        
        # set local master to no if you don't want Samba to become a master
        # browser on your network. Otherwise the normal election rules apply
        local master = no
        
        # control how messages to stdout & stderr are printed
        display charset=iso8859-1
        
        # control which character set to use when specifying arguments to
        # scripts that Samba invokes
        unix charset=iso8859-1
        
        # control how new filenames are created and read
        preserve case=yes
        short preserve case=yes
        case sensitive=no
        
        
        ## WINS & Name Resolution
        
        # wins support is set to no unless you have multi-subnets in your system
        wins support = no
        
        # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
        # via DNS lookups.
        dns proxy = no
        
        
        #======================== Share Definitions =========================
        # Definitions of terms
        # available - Allows you to turn off availability of a share
        # browseable - Allows the share to be seen in network neighborhood
        # comment - the text next to the share in network neighborhood
        # create mask - Permissions mask for files that are created
        # directory mask - Permissions mask for directories created
        # guest ok - allows guest access to the share
        # max connections - max number of users that can connect. 0=unlimited
        # path=/xxx - the path to the share
        # public - synonym for guest ok
        # read only - disallow or allow writing to the file
        # writeable - opposite of read only. either can be used
        
        
        # Here, I'm sharing the home directory
        [home]
         available=yes
         path=/home
         comment = Linux home directory
         public=yes
         browseable=yes
         writeable=yes
         create mask = 0644
         directory mask = 0755
         max connections=0
        
        # This is a share for a partition of my hard drive
        [hda1]
        available = yes
        path = /media/hda1
        comment = Windows System
        guest ok = yes
        browsable = yes
        writable = yes
        create mask = 0644
        directory mask = 0755
        max connections=0
        
        # This is a share for a partition of my hard drive
        [hda2]
        available = yes
        path = /media/hda2
        comment = Windows Swap
        guest ok = yes
        browsable = yes
        writable = yes
        create mask = 0644
        directory mask = 0755
        max connections=0
        With the new smb.conf file in place I then entered commands as follows:
        Code:
        smbd start
        nmbd start
        exit
        After waiting 10 minutes for the shares to be propogated throughout my network of 3 linux computers, one windows XP computer, and one Windows 2000 computer, I could not connect with the Kubuntu computer. On windows, the message was something like "The path to the share was not found", and was siimilar on Xandros Linux, and Damn Small Linux.

        Please note that this same procedure, and the same smb.conf file works flawlessly on all my other Linux distributions, with only changes in the path statements in the shares, and different netbios names for each computer.

        Oh yes.... I can successfully ping the Kubuntu computer using the numerical address, (192.168.2.52)

        I cannot believe that there is a problem with Samba. It must be something to do with Kubuntu, or with the distribution of Samba that is available through the Kubuntu repositories.

        Dick B.

        Comment


          #5
          Re: Samba: simple home network

          Originally posted by all4linux
          SMB4K. Is that a new release of Samba?
          Nope - just another frontend of sorts.

          Originally posted by all4linux
          I cannot believe that there is a problem with Samba.
          It must be something to do with Kubuntu
          To that I agree :P - what have they done this time

          To start somewhere: could you please check the netmask settings of all systems involved?
          Kubuntu seemingly defaults to 255.255.0.0 - while Debian et alii prefer 255.255.255.0 ...

          Comment


            #6
            Re: Samba: simple home network

            Can anyone tell me what is meant by "SMB4K". Is that a new release of Samba?
            Last things first. smb4k is nothing else but a samba browser for kde.

            This may seem a silly question, but is samba installed? Because it is not by default under kubuntu. For whatever reasons

            Try installing samba from adept or synaptic (my favorite).

            There is a bug that has been around for a while:
            http://kubuntuforums.net/forums/inde...opic=3083305.0

            Read it carefully and avoid gui configs for the moment.

            Your smb.conf looks okay from here.

            I hope that helps and enjoy

            Cheers
            F
            HP Pavilion dv6 core i7 (Main)
            4 GB Ram
            Kubuntu 18.10

            Comment


              #7
              Re: Samba: simple home network

              Smb4k is a KDE GUI for managing a Samba network. It works well for me. I am knowledgeable enough to mount folders from the CLI and to modify my fstab, but I find using Smb4k easier and faster.

              Comment


                #8
                Re: Samba: simple home network

                Originally posted by Detonate
                Smb4k is a KDE GUI for managing a Samba network. It works well for me. I am knowledgeable enough to mount folders from the CLI and to modify my fstab, but I find using Smb4k easier and faster.
                Ditto....

                Comment

                Working...
                X