• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Urgent! SAMBA Configuration problem

Hi experts, I've been trying to configure Samba for the last two days (I have to have it ready for tomorrow!) but there is something wrong.
I am using Red Hat 9 and Samba 3.02. I want to share my resources with workstations that use Windows XP and Windows 98.
My computer's name (linux)  is SZServer. From this computer I can connect to the Windows PCs. But they can't get to me. There are strange things in this: they can see me from "My Network Places" or "Windows Neighbourhood" but when they try to get in, they get this error:  "\\Server is not accesible. The Network Path was not found".  I've tried to access by typing in the address  bar "\\" (which is the server IP) but it doesn't work. The strange thing is that when i ping from a windows PC to SZServer I get "Unknown Host": so there would be some DNS problem, because I ping to successfully. But, why can they actually see "SZServer" in Windows Neighbourhood.
Well,  I hope you could help me, I need to have this done for tomorrow.
Thanks a lot.

PD: Just in case I am pasting the configuration files:


# Do not remove the following line, or various programs
# that require network functionality will fail.      SZServer      server      localhost.localdomain      localhost


search SZServer


workgroup = SnipersZone
netbios name = SZServer
printing = cups
domain master = yes
#local master = yes
server string = Servidor SAMBA
interfaces  = eth0 192.168.1.
log level = 1
log file = /var/log/samba/%m.log
load printers = yes
os level = 45
wins support = true
printcap name = lpstat
#max log size = 20
security = user
#share modes = yes
encrypt passwords = yes
#smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no

comment = Musica y Videos
path = /Musica
#browsable = yes
writable = yes
guest ok = yes

comment = CS Ranking SnipersZone
path = /httpd
browsable = yes
writable = no
guest ok = yes

/etc/samba/lmhosts:      SZServer      localhost

  • 2
  • 2
  • 2
  • +1
1 Solution
"PC to SZServer I get "Unknown Host"

Did you ping the ip of SZServer or the hostname?


Do you have a box with this ip providing DNS or has this address just been added by default during install?
ricardosergioandradaAuthor Commented:
i ping to "" succesfully but when i ping to "SZServer" i get "Unknown Host" answer.

"nameserver" thats my gateway, i dont know what its doing there.
"" this adress are by default during install.

Ping uses tcpip - your windows boxes dont have dns and if they did it would be outside dns - it wouldnt work for an internal network. If you want to be able to ping SZServer you need to create a hosts file in the windows directory with     SZServer     server in it. The server shows up in net neighbourhood because samba uses netbios - netbios  broadcasts names. If security isnt an issue the easiest way to get things working is to change the security = user in smb.conf to security = share and restart samba.
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

When you ping from client to SZServer, it doesn't matter at all what you have in your resolv.conf, the client is not influenced by that. You need to have a dns server which knows about SZServer and configure the ip of this dns server in the client.
Also not that this problem probably doesn't have anything to do with your samba issue.
Have you setup the client user password with smbpasswd (or are you using a Windows Server PDC for user authentication?)
ricardosergioandradaAuthor Commented:
ok i change the "hosts" from a client, but i still cant find SZServer,  i change  security user to share and restart samba and nothing.   :(
I am using smbpasswd.  
When i test my samba seems to work fine, but it doesnt,  plz send me another suggestion

[root@szserver init.d]# smbclient -U% -L SZServer
Domain=[SNIPERSZONE] OS=[Unix] Server=[Samba 3.0.2a]
        Sharename      Type      Comment
        ---------      ----      -------
        Musica         Disk      Musica y Videos
        Stats          Disk      CS Ranking SnipersZone
        IPC$           IPC       IPC Service (Servidor SAMBA)
        ADMIN$         IPC       IPC Service (Servidor SAMBA)
Domain=[SNIPERSZONE] OS=[Unix] Server=[Samba 3.0.2a]
        Server               Comment
        ---------            -------
        SZSERVER             Servidor SAMBA
        Workgroup            Master
        ---------            -------
Ok so locally samba looks fine. Now, can you ping the SZSERVER from the clients? It's enough that you can ping it specifying the IP address. If yes, try to access \\server_ip\Musica with valid user/password. If it doesn't work than maybe you have a linux firewall blocking traffic (iptables) or you have authentication problems.
Check the log files in /var/log/samba to see if requests are coming in or not.
although it sounds like you may have a firewall issue, it wouldn't hurt to double check the following:

-ensure the directories/files you would like to share are owned by the correct user and have the proper read/write flags set. 'ls -l' will give you a listing of directories and files. So, if you had a user, Bob, that was trying to access Musica make sure that the directory was readable to Bob, or the group that Bob is a member of. Also make sure that Bob was added to the samba user list with 'smbpasswd -a Bob'.

-be sure that you restart the samba daemon after each change to smb.conf, otherwise changes you make will not take effect.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now