[SOLVED] samba server does not seem to answer when called with the server name.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
samba server does not seem to answer when called with the server name.
Hello,
I have replaced a Samba server that was running under Debian 5. with a new server now under Debian 6. I have restored the old Samba config files that worked normally, in the new server and there is an odd behaviour that I do not understand:
On the server:
Code:
server:~$ ping server
64 bytes from server (127.0.1.1): icmp_req=1 ttl=64 time=0.024 ms
On a windows client
Code:
C:\Documents and Settings>ping server
Pinging server.fritz.box [192.168.1.100] with 32 bytes of data:
Reply from 192.168.1.100: bytes=32 time <1ms TTL=64
both work normally.
Code:
server:~$ smbclient -L 192.168.1.100 -U user
Enter user's password:
Domain=[WINDOWS] OS=[Unix] Server=[Samba 3.5.6]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
FTP Disk FTP Shared files
temp Disk
user Disk Home Directories
Domain=[WINDOWS] OS=[Unix] Server=[Samba 3.5.6]
Server Comment
--------- -------
SERVER my server
PC-DEMO
Workgroup Master
--------- -------
WINDOWS SERVER
When testing the smb server with the server's IP address it works ok.
Code:
server:~$ smbclient -L server -U user
Enter user's password:
session request to SERVER failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)
When testing the smb server with the server's name "server" (on this case) it does not work.
...
[2011/04/26 18:22:14.621793, 0] nmbd/nmbd.c:71(terminate)
Got SIGTERM: going down...
[2011/04/26 18:22:17, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/26 18:22:40.676194, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
*****
Samba name server SERVER is now a local master browser for workgroup WINDOWS on subnet 192.168.1.100
*****
thanks for your reply. I changed the host allow as you suggested and it seems to work now!
The curious thing is that it worked before, but perhaps something changed from the old samba version?
That could be the culprit. Try change it this way :
Code:
hosts allow = 127. 192.168.1.
Port 137:udp, 138:udp, 139:tcp and 445:tcp will also need to be allowed through your firewall to enable Windows to connect to your Samba server.
I ran into this problem as well, I know this is dated but it is relevant.
I added 127.0.0.1 to the allowed host, I was not able to browse to the samba server running on CentOS 6.3 x86_64 with samba-3.5.10-125.el6.x86_64 installed.
Why is it with the service smb start the nmb process is not included?
I had to chkconfig smb & nmb on, however I could not get it to take the server name without entering it in the 'netbios name' ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.