Author Topic: How the heck do you get samba to work with windows 7 and vista <<<SOLVED>>>>>  (Read 4708 times)

Offline kyndscotsman

  • Full Member
  • ***
  • Posts: 56
  • Ain't often right but I've never been wrong
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #30 on: December 18, 2010, 09:30:31 PM »
ok did that and restarted but I still have nothing. Whenever I try looking under the Control Center all it shows is this laptop and Kristopher-pc and not the windows 7 machine. When I do smbtree it lists all three computers, although 2 don't connect. Begining to think that I'll never get this to work with windows machines.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #31 on: December 18, 2010, 09:47:05 PM »

This is what i am getting here.
This is my "/etc/hosts" file
Quote
[root@mtz ink]# cat /etc/hosts
# generated by drakconnect
127.0.0.1 mtz
127.0.0.1 localhost
192.168.100.150 zulu

with the above "hosts" file(no entry for windows7),this is what "smbtree" gives me

Quote
[ink@mtz ~]$ smbtree
Enter ink's password:
MSHOME           
        \\INK-PC         
cli_start_connection: failed to connect to INK-PC<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL


same error you are getting, now, if i change my "hosts" file to this:

Code: [Select]
# generated by drakconnect
127.0.0.1 mtz
127.0.0.1 localhost
192.168.100.150 zulu
192.168.100.35 INK-PC

The last line represents a windows7 machine and this is what "smbtree" returns

Code: [Select]
MSHOME     
        \\INK-PC     

The error msg is gone and i dont know why windows7 shares do not show up here but i can access them using smb4k or "smb://" kio in konqueror

Do you still get those error msgs after you have added your vista and windows7 entries in your "hosts" file? what program are you using to try to access those windows shares?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline kyndscotsman

  • Full Member
  • ***
  • Posts: 56
  • Ain't often right but I've never been wrong
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #32 on: December 18, 2010, 10:02:58 PM »
yeah I still get the same error messages. I using the control center and the viewing windows shares option. Also whenever I use my file manager to view network....it shows a workgroup folder and then when I click on it tells me failed to get share list from server and then that its not mounted.


WORKGROUP
   \\MARKSLAPTOP          
      \\MARKSLAPTOP\IPC$              IPC Service (Samba Member 3.5.6)
   \\LOCALHOST            
      \\LOCALHOST\IPC$              IPC Service (Samba Member 3.5.6)
   \\KRISTOPHER-PC        
cli_start_connection: failed to connect to KRISTOPHER-PC<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
   \\BROWN-PC             
cli_start_connection: failed to connect to BROWN-PC<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #33 on: December 18, 2010, 10:22:10 PM »

.. odd.. We get the same error initially but my error go away after i made the necessary change, i dont see why they dont on yours. YOu dont have to restarted pclinuxos or your windows machine for the changes to take effect.

I just looked at the hosts file you have provided and you should have this now

127.0.0.1 MarksLaptop
127.0.0.1 localhost
192.168.2.3 KRISTOPHER-PC   
198.162.2.2 BROWN-PC

The last address is wrong, that "2" should be an "8".

Are you sure you have those addresses correct?

What desktop environment are you using?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline kyndscotsman

  • Full Member
  • ***
  • Posts: 56
  • Ain't often right but I've never been wrong
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #34 on: December 18, 2010, 10:25:37 PM »
LXDE desktop

Offline kyndscotsman

  • Full Member
  • ***
  • Posts: 56
  • Ain't often right but I've never been wrong
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #35 on: December 19, 2010, 09:44:18 PM »
Thanks for everyones help. I've finally got everything sharing now. I ended up reinstalling my system. Then I went under the PCLinux control center and started by going to LOCAL DISK and made sure I enabled sharing for everyone on a Samba Server. Then I went to System and made sure that Samba and Winbind were enabled on bootup. Then I went to configure my Samba Server and made sure that I had it to Share system and under hosts I added the IP addresses of all my boxes. After I set up Samba and it made its config file I went to Network and Internet tab in Control center and then to Host Definitions. Once again I added all my computers names and IP addresses here. Then I went to /etc/hosts.allow and made sure all my computers and IP addresses were listed. Went back to Samba and restarted it and low and behold I can now access both windows vista and 7 boxes with no problems now. So thanks alot for the help.....it took me awhile to put it all together but I got it now. Now the next thing on my list is to be able to share the printer that is on the Vista box. Any ideas of where to find this info??

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #36 on: December 19, 2010, 10:33:27 PM »

Glad you have it sorted out and my congratulations for hanging on to this one until you solve it. I hope you have learned a thing or two on your quest to have this problem solved, such knowledge may seem useless now but it could prove useful in the future.

Rules here dictates one thread per problem, the root problem of this thread is solved and its time to finalize the thread by modifying the title of your thread and add "solved" to it.

Can you open another thread and discuss your printer problem there? thank you.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..