[opensuse] querying the default samba setup for suse 11
for better or worse, i want to put together an incredibly beginner-level presentation on samba on suse 11, so it behooves me to actually figure out what i'm talking about. as a starting point, i wanted to start with sles 11 and do *nothing* more than start smb and nmb, using the stock smb.conf settings that come with it (since, as i read it, that default smb.conf has what appear to be reasonable settings that one can start playing with.) so, starting there, i wanted to do nothing more than show "nmblookup" querying the system itself. that stock smb.conf does not set a netbios name but, AIUI, if one does not set a netbios name, the hostname is used by default. the default hostname for this install is "sles11" so i just, on the sles 11 system itself, ran: # nmblookup sles11 querying sles11 on 192.168.1.255 name_query failed to find name sles11 # huh. given how i understand netbios name resolution to work, shouldn't that have found that server? if i use the actual IP address of myself, it works: # nmblookup -A 192.168.1.231 Looking up status of 192.168.1.231 SLES11 <00> - B <ACTIVE> SLES11 <03> - B <ACTIVE> SLES11 <20> - B <ACTIVE> ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> WORKGROUP <1d> - B <ACTIVE> WORKGROUP <1e> - <GROUP> B <ACTIVE> WORKGROUP <00> - <GROUP> B <ACTIVE> MAC Address = 00-00-00-00-00-00 # so ... what am i misunderstanding here? obviously, using the IP address works fine. so should i not be allowed to make the same query by the hostname/netbios name? just to be clear, this is the *only* samba-enabled system on the local network, and there is no WINS server. so what have i screwed up? rday ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Robert P. J. Day wrote:
for better or worse, i want to put together an incredibly beginner-level presentation on samba on suse 11, so it behooves me to actually figure out what i'm talking about.
as a starting point, i wanted to start with sles 11 and do *nothing* more than start smb and nmb, using the stock smb.conf settings that come with it (since, as i read it, that default smb.conf has what appear to be reasonable settings that one can start playing with.)
so, starting there, i wanted to do nothing more than show "nmblookup" querying the system itself. that stock smb.conf does not set a netbios name but, AIUI, if one does not set a netbios name, the hostname is used by default.
the default hostname for this install is "sles11" so i just, on the sles 11 system itself, ran:
# nmblookup sles11 querying sles11 on 192.168.1.255 name_query failed to find name sles11 #
in /etc/hosts make sure 192.168.1.231 points to sles11 example: # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 192.168.2.3 localhostname 192.168.2.1 router 192.168.2.4 othermachineonetwork -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 18 Oct 2009, Michael S. Dunsavage wrote:
Robert P. J. Day wrote:
for better or worse, i want to put together an incredibly beginner-level presentation on samba on suse 11, so it behooves me to actually figure out what i'm talking about.
as a starting point, i wanted to start with sles 11 and do *nothing* more than start smb and nmb, using the stock smb.conf settings that come with it (since, as i read it, that default smb.conf has what appear to be reasonable settings that one can start playing with.)
so, starting there, i wanted to do nothing more than show "nmblookup" querying the system itself. that stock smb.conf does not set a netbios name but, AIUI, if one does not set a netbios name, the hostname is used by default.
the default hostname for this install is "sles11" so i just, on the sles 11 system itself, ran:
# nmblookup sles11 querying sles11 on 192.168.1.255 name_query failed to find name sles11 #
in /etc/hosts make sure 192.168.1.231 points to sles11
i added that, but it appeared to make no difference, and i'm guessing that i'm just unclear on the name resolution that kicks in when using nmblookup. obviously, if i use an IP address, there's no name resolution required and it works. but if i use the normal system hostname (in my case, sles11), how does the name resolution work? i thought it would involve netbios, but you seem to be suggesting that it's a regular name lookup involving DNS or /etc/hosts, not netbios at all. FYI, /etc/hosts already contained the line: 127.0.0.2 sles11.site sles11 for what that's worth. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 18 October 2009 05:59:57 Robert P. J. Day wrote:
On Sun, 18 Oct 2009, Michael S. Dunsavage wrote: ...
in /etc/hosts make sure 192.168.1.231 points to sles11
i added that, but it appeared to make no difference, ...
Is there difference when firewall is off? -- Regards, Rajko OpenSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 18 Oct 2009, Rajko M. wrote:
On Sunday 18 October 2009 05:59:57 Robert P. J. Day wrote:
On Sun, 18 Oct 2009, Michael S. Dunsavage wrote: ...
in /etc/hosts make sure 192.168.1.231 points to sles11
i added that, but it appeared to make no difference, ...
Is there difference when firewall is off?
argh. yes, there is. i really should have thought of that. but let me clarify something. originally, this worked: # nmblookup -A 192.168.1.231 from that same host. now, i removed this line from /etc/hosts: 192.168.1.231 sles11 and, after stopping the firewall, this works: # nmblookup sles11 querying sles11 on 192.168.1.255 192.168.1.231 sles11<00> # so, from the above, i'm assuming that the name resolution is being handled by a netbios broadcast request on the local network, and it is the same host that is answering its own request. and since i don't assign "sles11" as the official netbios name in smb.conf, i assume that netbios is using the regular hostname as the netbios name. does all that make sense? rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 18 October 2009 08:45:03 Robert P. J. Day wrote:
the name resolution is being handled by a netbios broadcast request on the local network, and it is the same host that is answering its own request.
Yes. Enable Broadcast requests in YaST Firewall for your local network. You will find it listed in left pane of firewall setup window. For instance 192.168.1.0/24 and nmblookup will work with firewall on. *** It is openSUSE/SUSE perk to keep all stuff that is not used closed, which is good from security stand point. The only problem is to convince openSUSE guys that not having easy way to connect to other computers on local network is not the way to increase number of users, which is directly proportional to number of customers [1]. [1] In my humble understanding, customer is legal or physical entity that pays for goods or services with money, goods, or services. -- Regards, Rajko OpenSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Michael S. Dunsavage
-
Rajko M.
-
Robert P. J. Day