Author Topic: How the heck do you get samba to work with windows 7 and vista <<<SOLVED>>>>>  (Read 4742 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 #15 on: December 15, 2010, 06:57:39 PM »
Well today is full of new problems. I can see all the computers but now I can't access anything. It keeps telling me unable to retrieve list from server and then drive not mounted. I got a whole new output from smbtree today. Begining to think that I need the KDE version instead of the LXE on my laptop


WORKGROUP
   \\LOCALHOST            
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
failed tcon_X with NT_STATUS_ACCESS_DENIED
   \\KRISTOPHER-PC        
cli_start_connection: failed to connect to KRISTOPHER-PC<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
   \\BROWN-PC             
cli_start_connection: failed to connect to BROWN-PC<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL

Offline pupthai

  • Hero Member
  • *****
  • Posts: 1426
  • PCLinuxOS 2011 2 - KDE4
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #16 on: December 15, 2010, 07:27:53 PM »
Maybe simplify the host names and have no char. like - or <space> in them as well just to be sure.
PCLinuxOS 2011 2 - KDE4
Intel 2 core duo @3.22gig, Asus P5G41/M, DDR2/1066 4gig, ENGT220 DDR3/1gig, 2x Seagate 250gig.

Online muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #17 on: December 15, 2010, 09:37:42 PM »

I dont have a windows 7 machine but i remember having one of windows7 betas virtualmachine, started it up and tried to do file sharing and i was getting the same error msgs you are getting.

A bit of clicking and google searches and i found a solution that worked here.

As root, open "/etc/hosts" and then add the ip address of those windows computers together with their ip addresses and then try to access those shares again.

The file should have these two additional lines when you are done.

192.168.x.x    KRISTOPHER-PC

192.168.y.y    BROWN-PC   

where "192.168.x.x" is the ip address of a computer with a name "KRISTOPHER-PC" and
"192.168.y.y " is the ip address of a computer with a name "BROWN-PC" and
.. 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 pupthai

  • Hero Member
  • *****
  • Posts: 1426
  • PCLinuxOS 2011 2 - KDE4
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #18 on: December 15, 2010, 10:45:38 PM »
Ah yes muungwana is right - I had pointed out the lmhost in samba but forgot the three files in etc.
Hosts -  Hosts allowed  - hosts deny


here is mine as example

Host deny:
#
# hosts.deny   This file describes the names of the hosts which are
#      *not* allowed to use the local INET services, as decided
#      by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!

ALL:ALL


Note the  All:All  that way it denies all others not listed in allow.

Hosts.allow:
192.168.5.2 250GXP
192.168.5.3 24GXP
192.168.5.4 PClosMain
192.168.5.5 Laplin12g
127.0.0.1 PClosMain localhost
192.168.5.
127.0.

listed hosts plus two ranges of IP it pretty much allows local host and any thing in the 192.168.5 range only

Hosts:
# generated by drakconnect
127.0.0.1 PClosMain
127.0.0.1 localhost
127.0.0.1 PCLOSMAIN
127.0.0.1 PCLOSMAIN.localdomain
127.0.0.1 localhost.localdomain
192.168.5.2 250GXP
192.168.5.3 24GXP
192.168.5.5 LAPLIN12G
192.168.5.4 PCLOSMIAN

I think it is like a mini dns for the local network

Like I said keep poking at it - it will work  ;)
PCLinuxOS 2011 2 - KDE4
Intel 2 core duo @3.22gig, Asus P5G41/M, DDR2/1066 4gig, ENGT220 DDR3/1gig, 2x Seagate 250gig.

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 #19 on: December 18, 2010, 05:04:21 PM »
ok I found the file to edit, tired to edit it using Leafpad but it won't let me save it unless I am root. I'm new to this so is there anyway I can run my editor a root.

Offline kc1di

  • Sr. Member
  • ****
  • Posts: 480
  • Morse Code early digital communication medium!
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #20 on: December 18, 2010, 05:15:04 PM »
ok I found the file to edit, tired to edit it using Leafpad but it won't let me save it unless I am root. I'm new to this so is there anyway I can run my editor a root.

in a terminal type su > enter
it will ask you for your root passwd.

then type leafpad /<Filename>

It will come up with root privileges.
Dave KC1DI Living somewhere in Maine USA
Morse Code and early digital mode
John 3:16
Registered Linux User #462608

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 #21 on: December 18, 2010, 06:27:20 PM »
well I edited lmhost in samba folder to have all my boxes and their IP addresses. Still samba won't mount any of my windows pcs. I don't have any "host" type folders in /etc..................is this a problem that needs to be fixed and how

Online muungwana

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

you dont have a text file called "hosts" in "/etc" ?

It should be there, can you check again? The full path to the text file is "/etc/hosts"
.. 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 #23 on: December 18, 2010, 06:42:56 PM »
I've looked a few times and there is not ann there. I don't know if its because I am running the LXDE version of PCLinux

Online muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: How the heck do you get samba to work with windows 7 and vista
« Reply #24 on: December 18, 2010, 06:48:35 PM »

It shouldnt matter what version of pclinuxos you are using.

what does this command give you?

cat   /etc/hosts

if you dont have the file, create a text file called "hosts" in "/etc" folder and then add the information you were here to add into that text file and then try again.

.. 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 #25 on: December 18, 2010, 08:18:47 PM »
well I edited the hosts files to have the IP addresses in them and still no luck getting the computers to connect to each other. So whats next do I need to edit the winbind config file too

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 #26 on: December 18, 2010, 08:21:03 PM »
heres what I got

   \\MARKSLAPTOP          
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
failed tcon_X with NT_STATUS_ACCESS_DENIED
   \\KRISTOPHER-PC        
cli_start_connection: failed to connect to KRISTOPHER-PC<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
   \\BROWN-PC             
cli_start_connection: failed to connect to BROWN-PC<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
[mark@localhost ~]$


Online muungwana

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

what does this command give you?


cat   /etc/hosts
.. 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 #28 on: December 18, 2010, 08:51:34 PM »
 generated by drakhosts
127.0.0.1 MarksLaptop localhost
192.168.2.3 kristopher-pc    
198.162.2.2 brown-pc


Online muungwana

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

make the file be this way

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


Those computer names should be in capital letters
.. 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 ..