Announcement

Collapse
No announcement yet.

How do I get this smb share to mount

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

    #16
    Re: How do I get this smb share to mount

    Just found an authentication tab on the problem machine that was turned on
    IEEE 802.1x EAP type smart card or other was enabled.
    Turning this off makes no difference to either machine, still can't connect from the other windows machine and still can from the Kubuntu machine.

    Last week it was the other way round?

    Comment


      #17
      Re: How do I get this smb share to mount

      Try to disable the guest account again.

      Maybe it has confused the windows machine.

      In windows, if you right-click on a share there is an option to make a connection (give it a drive letter), if you click it, a new window opens. There there is a blue link labelled "connect as another user". Click it and play with different usernames and passwords.

      If you believe that this is funny, try to throw a Vista machine in the mix . That's real fun ;P.

      Javier.

      Comment


        #18
        Re: How do I get this smb share to mount

        Dont think I'll be going out tomorow just to get one to join you in the fun

        I can see the problem machine now. I recreated the username from the other machines as a user on the problem machine, and now I can see it on the windows laptop again.

        Thanks for the help

        I have been at it for 14 hours now...I think it is time for a break, before I discover another problem

        Neil

        Comment


          #19
          Re: How do I get this smb share to mount

          In windows networking, you should always choose one of the following:

          1) Build a domain
          2) Create the same users in all the machines with the same password
          3) Assure that no user is created in two machines and use the guest account to access the other computers (don't connect a windows machine directly to the internet if you use this system, put there a firewall or a router)
          4) Have endless fun with the user names.

          Javier.

          Comment


            #20
            Re: How do I get this smb share to mount

            What is the difference between a domain and a workgroup? this is something I hav never worked out....not even thought about setting one up, never had more than 3-4 machines, and I have always let the router handle everything

            How does a domain make things easier?

            Comment


              #21
              Re: How do I get this smb share to mount

              There is a central machine that stores all users and shares.

              I mean, you don't create users in each machine, but when booting each machine checks it username and password against the domain controller.

              There are lot of more things like running scripts at boot time for each user, deploying programs in each computer, mandatory programs to join the domain, centralized share definitions...

              Quite neat if you have a 100% windows medium or big network. With a small one, just having the same username and password in all the machines is quite easier and works nicely.

              Javier.

              Comment


                #22
                Re: How do I get this smb share to mount

                NO, no need for that for me, this is just a home network, with normally two or three machines a the most. Maybe a multimedia server next.
                Between pictures and FLAC audio I have about 600 Gig of files, plus spare HDD's for backups.

                Just started using Linux/Kubuntu. dont plan to mirgate over to it full time. Had heard so much about it over the past few years, thought it was worth a look, but it does not seem to be any less trouble the windows, just different trouble!

                Comment


                  #23
                  Re: How do I get this smb share to mount

                  One more thing...any idea on how to get smb4k to see the correct IP address? It is still seeing itself on the kubuntu machine as 192.168.1.15. which has not been assigned to it for a while now. It wont pickup its actuall address of 192.168.1.12.

                  Have tried a complete (purge) unisntall, re boot and re install, but it still insists it is 192.168.1.15. Nothing in the smb.conf file that I can see as relevant to this

                  Comment


                    #24
                    Re: How do I get this smb share to mount

                    Originally posted by Neil P
                    Just started using Linux/Kubuntu. dont plan to mirgate over to it full time. Had heard so much about it over the past few years, thought it was worth a look, but it does not seem to be any less trouble the windows, just different trouble!
                    Yes. But the main difference in that in Linux, you can investigate the source of the problem and resolve it. In windows you must live with it.

                    One more thing...any idea on how to get smb4k to see the correct IP address? It is still seeing itself on the kubuntu machine as 192.168.1.15. which has not been assigned to it for a while now. It wont pickup its actuall address of 192.168.1.12.
                    Ok. I'll try to check the smb4k source to see how does it determine a computer ip later today.

                    Then we can try to check why is this happening.

                    Javier.

                    Comment


                      #25
                      Re: How do I get this smb share to mount



                      Great thanks. I have to work this afternoon, at least it will get me out of the house

                      Comment


                        #26
                        Re: How do I get this smb share to mount

                        Originally posted by javierrivera
                        But the main difference in that in Linux, you can investigate the source of the problem and resolve it.
                        Or, in other words: with a (seemingly) misbehaving Penguin, more often than not, it's master (to-be) has to be blamed :P

                        Comment


                          #27
                          Re: How do I get this smb share to mount

                          Smb4k just issues a nmblookup to find the ip address of a server.

                          So you probably have samba misconfigured.

                          Things to chek:

                          1.- In the smb.conf file, the values of the wins support, win server and name resolve order options. win support should be set to yes, win server should be commented out or just not present. The name resolve order is just informative.

                          2.- Check if there is a /etc/samba/lmhost file. It's the main suspect . Either delete it or check if your computer has an ip specified here.

                          3.- Check the host file.

                          You can also check the nmblokup output

                          Code:
                          $ nmblookup yourcomputername
                          $ nmblookup -R -U yourcomputerip yourcomputername
                          The first order will broadcast for your ip. I mean it send a packet to all the computers in the network (subnet) asking "Who is yourcomputername".

                          The other one will query only the wins server in yourcomputerip. It means it will send a packet just to yourcomputerip asking who is yourcomputername.

                          If you get different answers... incorrect wins settings.

                          Javier.

                          Comment


                            #28
                            Re: How do I get this smb share to mount

                            Here is the smb.conf file,: I have left in all the comments so it is a bit long:


                            [global]
                            ; General server settings
                            netbios name = KUBUNTU
                            server string =
                            workgroup = HOME
                            announce version = 5.0
                            socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

                            passdb backend = tdbsam
                            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: Inside this place you may build a printer driver repository for
                            ; Windows - I'll cover this topic in another HOWTO.
                            [print$]
                            path = /var/lib/samba/printers
                            guest ok = yes
                            write list = root
                            create mask = 0664
                            directory mask = 0775

                            [printers]
                            path = /tmp
                            printable = yes
                            guest ok = yes
                            browseable = no

                            [TORRENTS]
                            path = /home/neil/Torrents/
                            guest ok = yes
                            read only = no


                            Here are the results from the Konsole:
                            neil@Kubuntu:~$ nmblookup Kubuntu
                            querying Kubuntu on 192.168.1.255
                            192.168.1.12 Kubuntu<00>

                            neil@Kubuntu:~$ nmblookup -R -U 192.168.1.12 Kubuntu
                            querying Kubuntu on 192.168.1.12
                            192.168.1.12 Kubuntu<00>
                            192.168.1.15 Kubuntu<00>
                            169.254.3.33 Kubuntu<00>
                            neil@Kubuntu:~$

                            There is no lmhosts file

                            Here is the hosts file:
                            127.0.0.1 localhost
                            192.168.1.13 Feisty
                            192.168.1.12 Kubuntu
                            192.168.1.11 NPSONY
                            192.168.1.10 SU

                            # The following lines are desirable for IPv6 capable hosts
                            ::1 ip6-localhost ip6-loopback
                            fe00::0 ip6-localnet
                            ff00::0 ip6-mcastprefix
                            ff02::1 ip6-allnodes
                            ff02::2 ip6-allrouters
                            ff02::3 ip6-allhosts

                            Comment


                              #29
                              Re: How do I get this smb share to mount

                              Where is this coming from:
                              169.254.3.33 Kubuntu<00>

                              Is it some sort of local address?

                              Comment


                                #30
                                Re: How do I get this smb share to mount

                                Code:
                                name resolve order = hosts wins bcast
                                That means that the wins server will try to find hostsname first in the host file:

                                Code:
                                192.168.1.12 Kubuntu<00>
                                After that in the wins cache

                                Code:
                                192.168.1.15 Kubuntu<00>
                                There should be a file named wins.dat somewhere on your hard drive. If you delete it, these problem should get resolved.

                                Code:
                                $ sudo find / -name "wins.dat"
                                This command will find it, but it will take some time.

                                168.254.x ip addresses are usually assigned to network devices configured to use DHCP that have not found a DHCP server.

                                Either it's in some old wins.dat or you have an unused network device in your computer trying to get an IP address.

                                Javier.

                                Comment

                                Working...
                                X