Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-04-2003, 12:47 PM
|
#1
|
Member
Registered: Oct 2003
Posts: 43
Rep:
|
Samba server only reachable by IP address, not showing in Network Neighbourhood
I have a recent install, yesterday, of Samba 3.0.0 on RH9 and there is only one system in my office, the one at my desk ofcourse, that the samba server shows in Network Neighbourhood. The server is reachable from others by typing the IP address into the Map Network Drive dialog box, and from then works as expected. Any ideas?
Also, I am trying set up a share on the same server that a user does not have to type in a user or password, basically all people can access the same share with full read/write, just like a "Guest" account on Windows. I know this is a bad idea in terms of security, but we are behind a firewall and I am still in the process of convincing my boss that we should change this scheme.
All systems trying to connect are running Win2000 Pro
Thanks for any help
mdkelly
|
|
|
11-04-2003, 01:13 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
For the name problem check to see if you have any firewall rules blocking ports 137&138 UDP and that nmbd is running. Post the output of this if you are unsure:
iptables -L
netstat -nlp
For a public share just put this in your share definition:
public = yes
|
|
|
11-04-2003, 01:25 PM
|
#3
|
Member
Registered: Sep 2003
Location: Planet Earth
Distribution: SuSE Linux 9.0
Posts: 83
Rep:
|
Doesn't W2K use DNS even for local network name resolution, does it? So you'll need an internal DNS server for proper name resolution. (may be not).
You can still resolve the problem manually. Just add your Samba host to W2K hosts file - c:\winnt\system32\drivers\etc\hosts. Then everyone finds your Samba server by host name.
|
|
|
11-04-2003, 02:46 PM
|
#4
|
Member
Registered: Oct 2003
Posts: 43
Original Poster
Rep:
|
Thanks for the replies
Here is the output of iptables -L
[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Here is the output of netstat -nlp
[root@localhost root]# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Progr
am name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 1601/rpc.
statd
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN 1719/xine
td
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2513/smbd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1582/port
map
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 1895/X
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1705/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1748/cups
d
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2513/smbd
udp 0 0 0.0.0.0:32769 0.0.0.0:* 1601/rpc.
statd
udp 0 0 192.168.0.197:137 0.0.0.0:* 2515/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 2515/nmbd
udp 0 0 192.168.0.197:138 0.0.0.0:* 2515/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 2515/nmbd
udp 0 0 0.0.0.0:929 0.0.0.0:* 1601/rpc.
statd
udp 0 0 127.0.0.1:32935 0.0.0.0:* 2516/smbd
udp 0 0 0.0.0.0:111 0.0.0.0:* 1582/port
map
udp 0 0 0.0.0.0:631 0.0.0.0:* 1748/cups
d
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 2135 1728/gpm /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 3379 2060/gconfd-2 /tmp/orbit-r oot/linc-80c-0-71aecbd12b601
unix 2 [ ACC ] STREAM LISTENING 3218 2035/kdeinit: ksmse /tmp/.ICE-un ix/2035
unix 2 [ ACC ] STREAM LISTENING 3395 2056/eggcups /tmp/orbit-r oot/linc-808-0-3d05859b8f99
unix 2 [ ACC ] STREAM LISTENING 3487 2055/python /tmp/orbit-r oot/linc-807-0-1e1971e1af025
unix 2 [ ACC ] STREAM LISTENING 2246 1807/xfs /tmp/.font-u nix/fs7100
unix 2 [ ACC ] STREAM LISTENING 2385 1895/X /tmp/.X11-un ix/X0
unix 2 [ ACC ] STREAM LISTENING 2485 1964/ssh-agent /tmp/ssh-XXr 4fimK/agent.1906
unix 2 [ ACC ] STREAM LISTENING 2375 1851/gdm-binary /tmp/.gdm_so cket
unix 2 [ ACC ] STREAM LISTENING 2909 2003/kdeinit: Runni /tmp/ksocket -root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 2913 2006/kdeinit: dcops /tmp/.ICE-un ix/dcop2006-1067963161
unix 2 [ ACC ] STREAM LISTENING 2936 2009/kdeinit: klaun /tmp/ksocket -root/klauncherrSBEda.slave-socket
unix 2 [ ACC ] STREAM LISTENING 3035 2023/artsd /tmp/mcop-ro ot/localhost_localdomain-07e7-3fa7d326
I ran into the iptables issue yesterday and solved it by killing the service. It is not needed as the machine will (is) behind a firewall.
To me it appears that ports 137&138 are open. Really not sure what is going on since the one machine that sees the server in Network Neighbourhood took no coaxing whatsoever, it was just there.
I tried the public=yes but it stills asks for a password. I will post my conf file later if needed.
thanks again for the help
mdkelly
I added the server name to the hosts file and the server is now accessible through its name when I go through the Map Network Drive dialog box, It still does not appear in Network Neighbourhood
Last edited by mdkelly069; 11-04-2003 at 02:50 PM.
|
|
|
11-04-2003, 03:03 PM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Can you post smb.conf - all the services look ok.
|
|
|
11-04-2003, 03:27 PM
|
#6
|
Member
Registered: Oct 2003
Posts: 43
Original Poster
Rep:
|
Sure I can. I stripped out the lines that I was not using. I started with the example .conf file that came with samba 3.0.0
[global]
netbios name = server2
workgroup = KOMEX
server string = Samba Server
security = user
hosts allow = 192.168.0. 127.0.0.1
log file = /usr/samba/var/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
ldap ssl = no
encrypt passwords = yes
#============================ Share Definitions ==============================
;[public]
; path = /mnt/win_data
; public = yes
; only guest = yes
; writable = yes
; printable = no
;[server]
; comment = File Server
; path = /mnt/win_data/server
; valid users = victoria
; guest ok = no
; writeable = yes
; create mode = 0666
; directory mode = 0777
[testserver]
comment = testing
path = /mnt/win_data/server
browseable = yes
public = yes
writable = yes
The only firewall in the office is our proxy/firewall that leads out to the net and it should have no effect on the file server as it comes nowhere near it
Thanks a lot for looking at it
|
|
|
11-04-2003, 03:32 PM
|
#7
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It sounds like your master browser isn't picking up the machine - try making linux become the master browser - add this to the global section:
local master = yes
os level = 65
preferred master = yes
Then restart the samba services - give it a minute or two to kick in.
|
|
|
11-04-2003, 04:52 PM
|
#8
|
LQ Newbie
Registered: Nov 2003
Posts: 1
Rep:
|
services running
is the nmb running?
search in init-scripts
after changing the smb.conf, restart them
for my SUSE 8.2
/etc/rc.d/nmb restart
/etc/rc.d/smb restart
(^as root)
CYA
|
|
|
11-04-2003, 05:08 PM
|
#9
|
Member
Registered: Oct 2003
Posts: 43
Original Poster
Rep:
|
Hi all,
Tried the changes to the smb.conf file, actually I changed them about an hour ago, and there is still no difference.
I restarted both smbd and nmbd and let everything just sit, no change. All machines I have sat down at will still allow me to connect when I map a drive and use the IP address. The only machine that sees the server in Network Neighbourhood is still the machine sitting on my desk. Basically there is no change whatsoever.
Thank you all for your suggetions and I hope you have more as I really need to get this sorted out.
Cheers
mdkelly
The other thing is that my share "testserver" as listed above in my .conf file is not allowing "guest" access, it is still requiring a username and password.
Thanks again
Last edited by mdkelly069; 11-04-2003 at 05:18 PM.
|
|
|
11-04-2003, 06:06 PM
|
#10
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 388
Rep:
|
>Doesn't W2K use DNS even for local network name resolution, does it?
AFAIK it uses both domain names and NETBIOS names. Network
neighbourhood shows NETBIOS names.
>So you'll need an internal DNS server for proper name resolution.
No, lots of places use windows networking without an internet nameserver
or with one that only resolves internet addresses not the addresses of LAN machines.
>You can still resolve the problem manually. Just add your Samba host >to W2K hosts file - c:\winnt\system32\drivers\etc\hosts. Then everyone >finds your Samba server by host name.
Or in the lmhosts.sam file which provides fixed mapping of NETBIOS names.
Regarding the problem of the machine not appearing in network
neighborhood, are all the machines in the same ip subnet?
They are probably doing NETBIOS over tcp so if they are using different broadcast addresses they may not find each other.
|
|
|
11-04-2003, 06:08 PM
|
#11
|
LQ Newbie
Registered: Jan 2003
Posts: 15
Rep:
|
The Latest,
Well I have made it worse. On the only machine that could see the server in Network Neighbourhood I decided to change the login so it matched a username I had as a samba user. Well as soon as I did that and restarted, the Samba server was no longer visible, but, I was able to log right in to share I has set up without having to enter a username and password.
I guess you have to take 2 steps back to take one forward
Going to go play more and see what happens, maybe three steps back
Cheers
Last edited by mdkelly; 11-04-2003 at 06:27 PM.
|
|
|
11-04-2003, 07:20 PM
|
#12
|
Member
Registered: Oct 2003
Posts: 43
Original Poster
Rep:
|
Okay here is the latest:
If I go into Win Explorer and in the address bar I type
\\192.168.0.197\ (server IP)
I get the server share in the left hand pane, but it is showing the server as part of the workgroup "Unknown". However, on the one machine that does see it it is part of the correct workgroup "Komex"
Also, and probably a big one, the internal network uses the IPX/SPX protocol and, please correct me if I am wrong, Samba uses NetBIOS over TCP/IP.
zaphodiv:
As far as I now all the machines are using the same IP subnet 255.255.255.0. I only say as far as I know because the only ones I can say for sure are the ones I have looked at in the last couple of days. Some users may have changed theirs, but I doubt it very much.
That is all for now
Thanks again
mdkelly
|
|
|
11-05-2003, 11:06 AM
|
#13
|
LQ Newbie
Registered: Jan 2003
Posts: 15
Rep:
|
Okay morning update:
I, and a co-worker, discovered this morning that the reason none of the machines, except the one I work at, could see the Samba server was that in Internet Protocol (TCP/IP) >> Properties >> Advanced >> Wins >> NetBIOS over TCP/IP had been disabled. Once I re-enabled it on a couple of machines the server popped right up and my test shares were accessible.
I'm sure I will be back soon with more issues
Thanks for your help
mdkelly
|
|
|
11-09-2003, 08:43 PM
|
#14
|
Member
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122
Rep:
|
Ok, that didn't help me....
Basiacally I'm using SWAT, and both services are running, I can even login to it using smbclient... weird huh?
As far as I know SAMBA is working, cept NONE of the windows clients see any new domains
By the way, we use a domain at my office
Thanks in advance
|
|
|
11-10-2003, 08:41 AM
|
#15
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 388
Rep:
|
>NONE of the windows clients see any new domains
Samba normally acts as a peer in a workgroup not a domain.
Have you read the samba HOWTO and configured it as a domain controller?
|
|
|
All times are GMT -5. The time now is 11:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|