Urgent! SAMBA Configuration problem

Posted on 2004-04-22
Last Modified: 2010-03-18
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

Question by:ricardosergioandrada
  • 2
  • 2
  • 2
  • +1
LVL 17

Expert Comment

ID: 10893975
"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?

Author Comment

ID: 10895969
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.

LVL 17

Accepted Solution

owensleftfoot earned 500 total points
ID: 10897472
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.
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

LVL 11

Expert Comment

ID: 10900684
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?)

Author Comment

ID: 10901775
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
        ---------            -------
LVL 11

Expert Comment

ID: 10902964
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.

Expert Comment

ID: 11000142
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What antennae works with Linux? 7 81
I search low cost dedicated server provider 4 29
Error when calling SSH command 20 110
IPA and Samba (and NFS and Samba....) 1 132
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now