"Frank Conte" wrote:
> Stephen
>
> I thoroughly checked my smb.conf file and didn't even find an "Commented"
inert
> line calling for
> netbios name = machine_name. There were other references to netbios but
not the
> kind you described.
>
> fc
>
>
Stephen Harris wrote:
There is a fairly well-written doc called the Samba HowTo which should
help you:
http://us1.samba.org/samba/docs/
The current Samba-3 release version of the Samba-HOWTO-Collection
may be found here in PDF and HTML formats.
I like the pdf because it seems easier to search. Then sometimes to cut
and paste I use the html version. I found 99 references to "netbios name"
and here are a couple of examples with netbios name in the smb.conf.
There are also sections dealing with file and directory ownerships etc.
Example 11.2. Configuration with LDAP
[global]
security = user
encrypt passwords = yes
netbios name = MORIA
workgroup = NOLDOR
Example 17.1. smb.conf with DFS configured
[global]
netbios name = GANDALF
host msdfs = yes
[dfs]
path = /export/dfsroot
msdfs root = yes
SH: Incidentally, the usenet group linux.samba has a
concentration of networking experience with samba,
plus about 10 times as many messages posted.
From groups.google.com I found these references:
# This sets the NetBIOS name by which a Samba server is known.
# By default it is the same as the first component of the host's
DNS name.
# If a machine is a browse server or logon server this name
# (or the first component of the hosts DNS name) will be the
name that these
# services are advertised under.
netbios name = <15 chars max)>
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = <MYGROUP>
SH: next example
# Global parameters
[global]
workgroup = universe
netbios name = pirahna
domain master = yes
os level = 33
I am using the following smb.conf file in order to get different
options depending on what name the user uses to
connect to our Samba server (1.9.17p4):
SH: next example
[global]
; Multiple personality SAMBA server based on system name.
config file = /usr/add-on/samba/lib/smb.conf.%L
In each smb.conf.%L file I use the 'netbios name' and 'wins server' option
to set the values I need. However, I note that the netbios names that I am
setting are not being registered with the NT Wins servers specified.
If I set the netbios name in the top level smb.conf file it works as
expected.
How can I get nmbd to register multiple names with each name registration
going to a different NT Wins server?
SH: next example
I have the latest version ( as of two nights ago) of Samba running on
OpenBSD 3.0.
My problem is that I can't seem to resolve the NetBIOS name of
my server from my two workstations (Windows XP Pro). My two XP machines
can resolve each other just fine. However they can't resolve the NetBIOS
name
of my OpenBSD server.
{SH: This is why I suggested pinging the linux machine by name.}
SH: next example
*) Install the samba and the samba-client from the rpms (go
to rpmfind.net for the latest rpm's) i used samba-2.2.7-2
and samba-client-2.2.7-2 pkgs
*) $rpm -i samba* install the samba software on the linux
box.
*) open the smb.conf and put in the below entries
# Global parameters
[global]
netbios name = MYSAMBASHARE
workgroup = MYSAMBAWORKGROUP
log level = 3
log file = /tmp/samba/log/samba.log
encrypt passwords=yes
#security=user
security=share
hosts allow=12.20.
# info abt shared directories
[sharedir]
path =/home/testsamba
browseable = yes
read only = no
directory mode=0775
create mode=0664
the security= share lets all the authenticated
users to see the [sharedir]. there are several
other options for security= user or security=
domain etc .
There is a know bug in windows network
neigbourhood, which doesnot allow a user who does
not have the same user name/passwd on both win
2k(client ) and the samba server(linux) to see the
[shareddir] when the security=user is set in the
above smb.conf.
the "hosts allow=12.20" lets the users with the
IP's starting with 12.20.* see the [sharedir]
SH: security is usually set to user; since you have
tried identical usernames and passwords, the issue
he talks about (network neighborhood, is not the
cause of the problem. In google using the keywords
smb.conf and netbios name I found 12,300 hits. I
think maybe 12,000 of those will show netbios name =
machine_name in the [global] section of the smb.conf.
However, this was offered as a suggestion for you to
try, not as a guaranteed cure.
SH: last example
I'm having a problem with name resolution and samba. I'm running samba
1.9.17p4 on Solaris 2.5.1 and need to enable DNS. I'm using the
"netbios name" field in smb.conf to specify a different computer name
instead
of my current samba server hostname. This works fine until I change the
nsswitch.conf file on my server to enable DNS.
If I change the line:
host: files
to
host: files dns
my netbios name is no longer recognized as a valid samba server. I still
see it in the network neighborhood, but if I click on it to view the shares,
it indicates its not a valid server.
Any idea what might be wrong?
Here is a link to a troubleshooting guide:
http://www.practicallynetworked.com/...innetprobs.htm
And a lot of networking tutorials:
http://www.wown.com/
http://www.wown.com/articles_tutorials/w2kshare.html
There are quite a few reasons for Samba not to work
and the documentation is a better resource than me
for exploring those reasons in a systematic manner.
Happy Holidays,
Stephen