Cant connect to samba share from windows
Ok I am setting up samba on my CentOS server for the first time. I am using webmin to configure samba.
Here is the smb.conf Code:
[global] Windows cannot access \\KISKA check the spelling of the name. otherwise there might be a problem with your network. Under the details of this error I get this: "The network path was not found" Also I have stopped iptables so it cant be firewalled |
Is kiska the actual host name of your linux box? Try accessing your box using its IP address instead of the host name to see if that's the problem.
|
Quote:
1) I tried mapping a network drive using both the domain name "Kiska" and the ip address with no luck 2) I can ping the box using the ip address (used above) and I get a good response 3) How do I change the Actual host name? Is that not a part of Samba? |
your server string is empty. Try something like "server string = %h" that should should assign your hostname to the Netbios name that is broadcasts. Also try adding hosts allow = 127.,192.168.1. (substituting your correct LAN subnet for 192.168.1. ) to the global section. Also the "remote announce = 192.168.1.255 (or the proper broadcast address for you subnet) will tell it were to broadcast it's presence so the client can 'see' it.
|
Quote:
Also, I added %h to the server string and Now I can connect by mapping a hard drive, however it rejects any username and password I enter. I have tried both usernames and passwords from my windows computer and the Usernames and passwords set in samba (they are identical and are kept updated by the unix usernames and passwords) and It wont let me access the share using any of them. thanks for your help so far! |
anyone??
|
smbpasswd
Not sure if it still matters, but I've noticed in my experiences that even if the samba passwords are kept in sync with unix, you still often have to "smbpasswd -a" your user before samba will acknowledge. Just my experience...might be some configuration settings I never change from the defaults!
|
Quote:
|
Here's my smb.conf, for what it's worth. This machine has been happily running Samba for about a year, with two Win7 machines accessing it on a daily basis, never a failure, never needed to reconfigure.
Machine is running OpenSUSE 11.4 Code:
# Samba config file created using SWAT |
@ Reply
Hi linux hates me,
Did you check selinux status on CentOS machine. By default selinux is set to run in targeted mode. If it is set to targeted then check Samba booleans using the following command: Code:
getsebool -a | egrep '(smb)|(nmb)|(wins)|(samba)' |
All times are GMT -5. The time now is 01:46 AM. |