Announcement

Collapse
No announcement yet.

SMB & NFS servers and samba

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

    SMB & NFS servers and samba

    I have just done a fresh install of Feisty and from the start, I can see shared folders on windows machine on the home network via System Menu/Remote Places/Samba Shares.

    But I have not installed samba, so it must be installed by default? yes?

    But, right clicking on a folder, Properties, Share tab, Configure File Sharing, and the message along the top of the window that

    SMB and NFS servers are not installed on this machine.

    So from that I take it that SMB is not samba.....or is one client, one server...or what.


    So how/what do I install to have these SMB and NFS servers installed. I cant see anthing obvious in the adept add/remove programs installer

    Thanks for your time in helping this newbie

    Neil

    #2
    Re: SMB & NFS servers and samba

    smbclient and samba-common are installed by default but not samba. I know this sound confusing and don't ask me why this is so.
    I don't use adept but I would asume you will find it in the search. Install that configure your /etc/smb.conf.

    I hope that clarifies a bit
    HP Pavilion dv6 core i7 (Main)
    4 GB Ram
    Kubuntu 18.10

    Comment


      #3
      Re: SMB & NFS servers and samba

      Yes, thanks, makes more sense. I found it using synaptic. I had looked previously using Adept for anything related to samba, but nothing that seemed relevant Now installed and working.

      Now sharing both ways. Had a smb password autho prob but got that sorted after a brief search.

      Still cant seem to get apps like Amorak or KPhotoAlbum to work across the network shares though.

      Comment


        #4
        Re: SMB & NFS servers and samba

        Good to hear

        I am still having a rRW issue with my shares in feisty - winxp(vmware WS) can read my shares but not write or exec. I have tawled the smaba, launchpad, ubuntu, kubuntu, etc. sites to no real avail. In edgy it works great but not in feisty.

        I don't want passwrd auth. on this machine. Just RW

        Just getting RW would really make my day. Maybe you could have a look at my smb.conf?

        smb.conf:

        [global]

        workgroup = FINTANHOME
        interfaces = eth0
        security = share
        map to guest = bad user

        [Data]

        path = /Data
        read only = no
        wide links = no
        username = fintan2
        create mask = 0664
        directory mask = 0775
        guest ok = yes
        case sensitive = no
        strict locking = no
        #msdfs proxy = no

        [HP880C]

        printing = cups
        path = /var/tmp
        printable = yes
        guest ok = yes
        guest only = yes

        What am I missing??

        EDIT: Just a thought. Do you have your smb shares in your fstab? I think amorak, etc. need that.

        EDIT 2:
        I got it this time. I had to unmount all shares, remount them give them rw and reboot.DUUUH
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment


          #5
          Re: SMB & NFS servers and samba

          Well here is my smb.conf, you are more likely to see what is different than me.
          Have just tried to write to the shared files on the kubuntu box from windows XP,and no, no good no write ability. Even though it is set to writable in folder share properties

          You asked:
          Just a thought. Do you have your smb shares in your fstab.
          Sorry dont understand the question. The shared folder I set up are new folders created under the Home directory, sharing enabled from right click of folder and properties/share tab.

          Oh...how do you do the unmount and remount the shares?


          #

          #======================= Global Settings =======================

          [global]
          workgroup = HOME


          server string = %h server (Samba, Ubuntu)

          ; wins support = no

          # WINS Server - Tells the NMBD components of Samba to be a WINS Client
          # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
          ; wins server = w.x.y.z

          # This will prevent nmbd to search for NetBIOS names through DNS.
          dns proxy = no

          # What naming service and in what order should we use to resolve host names
          # to IP addresses
          ; name resolve order = lmhosts host wins bcast

          #### Networking ####

          # The specific set of interfaces / networks to bind to
          # This can be either the interface name or an IP address/netmask;
          # interface names are normally preferred
          ; interfaces = 127.0.0.0/8 eth0

          # Only bind to the named interfaces and/or networks; you must use the
          # 'interfaces' option above to use this.
          # It is recommended that you enable this feature if your Samba machine is
          # not protected by a firewall or is a firewall itself. However, this
          # option cannot handle dynamic or non-broadcast interfaces correctly.
          ; bind interfaces only = true



          #### Debugging/Accounting ####

          # This tells Samba to use a separate log file for each machine
          # that connects
          log file = /var/log/samba/log.%m

          # Put a capping on the size of the log files (in Kb).
          max log size = 1000

          # If you want Samba to only log through syslog then set the following
          # parameter to 'yes'.
          ; syslog only = no

          # We want Samba to log a minimum amount of information to syslog. Everything
          # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
          # through syslog you should set the following parameter to something higher.
          syslog = 0

          # Do something sensible when Samba crashes: mail the admin a backtrace
          panic action = /usr/share/samba/panic-action %d


          ####### Authentication #######

          # "security = user" is always a good idea. This will require a Unix account
          # in this server for every user accessing the server. See
          # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
          # in the samba-doc package for details.
          ; security = user

          # You may wish to use password encryption. See the section on
          # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
          encrypt passwords = true

          # If you are using encrypted passwords, Samba will need to know what
          # password database type you are using.
          passdb backend = tdbsam

          obey pam restrictions = yes

          ; guest account = nobody
          invalid users = root

          # This boolean parameter controls whether Samba attempts to sync the Unix
          # password with the SMB password when the encrypted SMB password in the
          # passdb is changed.
          ; unix password sync = no

          # For Unix password sync to work on a Debian GNU/Linux system, the following
          # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
          # sending the correct chat script for the passwd program in Debian Sarge).
          passwd program = /usr/bin/passwd %u
          passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .

          # This boolean controls whether PAM will be used for password changes
          # when requested by an SMB client instead of the program listed in
          # 'passwd program'. The default is 'no'.
          ; pam password change = no

          ########## Domains ###########

          # Is this machine able to authenticate users. Both PDC and BDC
          # must have this setting enabled. If you are the BDC you must
          # change the 'domain master' setting to no
          #
          ; domain logons = yes
          #
          # The following setting only takes effect if 'domain logons' is set
          # It specifies the location of the user's profile directory
          # from the client point of view)
          # The following required a [profiles] share to be setup on the
          # samba server (see below)
          ; logon path = \\%N\profiles\%U
          # Another common choice is storing the profile in the user's home directory
          ; logon path = \\%N\%U\profile

          # The following setting only takes effect if 'domain logons' is set
          # It specifies the location of a user's home directory (from the client
          # point of view)
          ; logon drive = H:
          ; logon home = \\%N\%U

          # The following setting only takes effect if 'domain logons' is set
          # It specifies the script to run during logon. The script must be stored
          # in the [netlogon] share
          # NOTE: Must be store in 'DOS' file format convention
          ; logon script = logon.cmd

          # This allows Unix users to be created on the domain controller via the SAMR
          # RPC pipe. The example command creates a user account with a disabled Unix
          # password; please adapt to your needs
          ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

          ########## Printing ##########

          # If you want to automatically load your printer list rather
          # than setting them up individually then you'll need this
          ; load printers = yes

          # lpr(ng) printing. You may wish to override the location of the
          # printcap file
          ; printing = bsd
          ; printcap name = /etc/printcap

          # CUPS printing. See also the cupsaddsmb(8) manpage in the
          # cupsys-client package.
          ; printing = cups
          ; printcap name = cups

          # When using [print$], root is implicitly a 'printer admin', but you can
          # also give this right to other users to add drivers and set printer
          # properties
          ; printer admin = @lpadmin


          ############ Misc ############

          # Using the following line enables you to customise your configuration
          # on a per machine basis. The %m gets replaced with the netbios name
          # of the machine that is connecting
          ; include = /home/samba/etc/smb.conf.%m

          # Most people will find that this option gives better performance.
          # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
          # for details
          # You may want to add the following on a Linux system:
          # SO_RCVBUF=8192 SO_SNDBUF=8192
          socket options = TCP_NODELAY

          # The following parameter is useful only if you have the linpopup package
          # installed. The samba maintainer and the linpopup maintainer are
          # working to ease installation and configuration of linpopup and samba.
          ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

          # Domain Master specifies Samba to be the Domain Master Browser. If this
          # machine will be configured as a BDC (a secondary logon server), you
          # must set this to 'no'; otherwise, the default behavior is recommended.
          ; domain master = auto

          # Some defaults for winbind (make sure you're not using the ranges
          # for something else.)
          ; idmap uid = 10000-20000
          ; idmap gid = 10000-20000
          ; template shell = /bin/bash

          #======================= Share Definitions =======================

          # Un-comment the following (and tweak the other settings below to suit)
          # to enable the default home directory shares. This will share each
          # user's home directory as \\server\username
          ;[homes]
          ; comment = Home Directories
          ; browseable = no

          # By default, \\server\username shares can be connected to by anyone
          # with access to the samba server. Un-comment the following parameter
          # to make sure that only "username" can connect to \\server\username
          ; valid users = %S

          # By default, the home directories are exported read-only. Change next
          # parameter to 'yes' if you want to be able to write to them.
          ; writable = no

          # File creation mask is set to 0600 for security reasons. If you want to
          # create files with group=rw permissions, set next parameter to 0664.
          ; create mask = 0600

          # Directory creation mask is set to 0700 for security reasons. If you want to
          # create dirs. with group=rw permissions, set next parameter to 0775.
          ; directory mask = 0700

          # Un-comment the following and create the netlogon directory for Domain Logons
          # (you need to configure Samba to act as a domain controller too.)
          ;[netlogon]
          ; comment = Network Logon Service
          ; path = /home/samba/netlogon
          ; guest ok = yes
          ; writable = no
          ; share modes = no

          # Un-comment the following and create the profiles directory to store
          # users profiles (see the "logon path" option above)
          # (you need to configure Samba to act as a domain controller too.)
          # The path below should be writable by all users so that their
          # profile directory may be created the first time they log on
          ;[profiles]
          ; comment = Users profiles
          ; path = /home/samba/profiles
          ; guest ok = no
          ; browseable = no
          ; create mask = 0600
          ; directory mask = 0700

          [printers]
          comment = All Printers
          browseable = no
          path = /var/spool/samba
          printable = yes
          create mask = 0700

          # Windows clients look for this share name as a source of downloadable
          # printer drivers
          [print$]
          comment = Printer Drivers
          path = /var/lib/samba/printers

          [NEW FOLDER]
          path = /home/neil/Desktop/New Folder/
          guest ok = yes

          [STREET ART]
          path = /home/neil/Photos/Street art/
          guest ok = yes

          Comment


            #6
            Re: SMB &amp; NFS servers and samba

            Okay I'll have a look later. Just got back from a meeting, hungry and tired.


            EDIT: For unmounting and remountig:
            http://www.psychocats.net/ubuntu/mountwindows

            I take it your shares are fat32 or ntfs, wndows cannot read linux formats (like ext3, reiser, etc)

            Your smb.conf looks okay
            HP Pavilion dv6 core i7 (Main)
            4 GB Ram
            Kubuntu 18.10

            Comment


              #7
              Re: SMB &amp; NFS servers and samba

              Yes, ntfs, but on a different machine

              Looks like that that link deals with shares on the same computer/hd/ just on a different partition.
              The Feisty machine I have is only that, all my shares are on other network computers, so may be the unmount/mount does not apply? Do you still mount a share on a remote machine in the same way as a share on the local machine?

              Comment


                #8
                Re: SMB &amp; NFS servers and samba

                Sure, glad to be of help
                HP Pavilion dv6 core i7 (Main)
                4 GB Ram
                Kubuntu 18.10

                Comment


                  #9
                  Re: SMB &amp; NFS servers and samba

                  I edited that last post after reading the article, Must have been just after you were you replied

                  Comment


                    #10
                    Re: SMB &amp; NFS servers and samba

                    Do you still mount a share on a remote machine in the same way as a share on the local machine?
                    AH! Good question. I'll have to get to you on that one.
                    HP Pavilion dv6 core i7 (Main)
                    4 GB Ram
                    Kubuntu 18.10

                    Comment


                      #11
                      Re: SMB &amp; NFS servers and samba

                      Where are these guys located?

                      [NEW FOLDER]
                      path = /home/neil/Desktop/New Folder/
                      guest ok = yes

                      [STREET ART]
                      path = /home/neil/Photos/Street art/
                      guest ok = yes
                      HP Pavilion dv6 core i7 (Main)
                      4 GB Ram
                      Kubuntu 18.10

                      Comment


                        #12
                        Re: SMB &amp; NFS servers and samba

                        They are on the local machine, it is the ones on the remote windows XP machines on the local home network that I have the problems with

                        Comment

                        Working...
                        X