I am configuring Linux (2.0.33) as a local router. I am wanting to use Samba (1.9.18p3) to "manage" the browse lists on my network so that computers on each subnet can browse resources on the other subnets. My local network consists of Win95 and NT40 workstations with NT40 servers. My test configuration consists one token ring segment on one side of the Samba box (network .192) and one ethernet on the other side (network .128) (we are using 27 bit subnetting). Due to the needs of a remote network we are connected to, we are passing NetBios over IPX. I can't change that yet. |----| |-------| |-----| | A |--------| SAMBA |--------| B | |----| |-------| |-----| Workstation A (NT40) can see SAMBA in the browse list, but not Workstation B (Win95). Workstation B has an empty browse list. I am only running nmbd, since I am not interested in sharing resources. My Primary Domain Controller (NTS40) is on the same subnet as A. Below is my smb.conf file. The extra interfaces defined are for making the SAMBA box a full router. ----------------------------------------- # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not many any basic syntactic errors. # #======================= Global Settings ====================================[global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = CTI_42 # server string is the equivalent of the NT Description field server string = Router # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page ; hosts allow = 192.168.1. 192.168.2. 127. # If you want to automatically load your printer list rather # than setting them up individually then you'll need this ; load printers = yes # you may wish to override the location of the printcap file ; printcap name = /etc/printcap # on SystemV system setting printcap name to lpstat should allow # you to automatically obtain a printer list from the SystemV spool # system ; printcap name = lpstat # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = bsd # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used guest account = nobody # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/smb.%m # Put a capping on the size of the log files (in Kb). max log size = 50 # Security mode. Most people will want user level security. See # security_level.txt for details. security = user # Use password server option only with security = server ; password server = <NT-Server-Name> # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case. ; password level = 8 # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents ; encrypt passwords = yes # Unix users can map to different SMB User names ; username map = /etc/smbusers # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /usr/local/samba/lib/smb.conf.%m # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details socket options = TCP_NODELAY # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. interfaces = 38.228.22.193/27 38.228.22.129/27 38.228.22.65/27 38.228.22.98/27 # Configure remote browse list synchronisation here # request announcement to, or browse list sync from: # a specific host or from / to a whole subnet (see below) remote browse sync = 38.228.22.34 38.228.22.128 38.228.22.97 38.228.22.66 # Cause this host to announce itself to local subnets here remote announce = 38.228.22.32/CTI_42 38.228.22.128/CTI_42 \ 38.228.22.96/CTI_42 38.228.22.64/CTI_42 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply local master = yes # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable ; os level = 33 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ; domain master = yes # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ; preferred master = yes # Use only if you have an NT server on your network that has been # configured at install time to be a primary domain controller. ; domain controller = CTI_NT_1 # Enable this if you want Samba to be a domain logon server for # Windows95 workstations. ; domain logons = yes # if you enable domain logons then you may want a per-machine or # per user logon script # run a specific logon batch file per workstation (machine) ; logon script = %m.bat # run a specific logon batch file per username ; logon script = %U.bat # Where to store roving profiles (only for Win95 and WinNT) # %L substitutes for this servers netbios name, %U is username # You must uncomment the [Profiles] share below ; logon path = \\%L\Profiles\%U # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both wins server = 38.228.22.133 # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. ; wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. The built-in default for versions 1.9.17 is yes, # this has been changed in version 1.9.18 to no. dns proxy = no # Case Preservation can be handy - system default is _no_ # NOTE: These can be set on a per share basis ; preserve case = no ; short preserve case = no # Default case is normally upper case for all DOS files ; default case = lower # Be very careful with case sensitivity - it can break things! ; case sensitive = no #============================ Share Definitions =============================[homes] comment = Home Directories browseable = no writable = yes # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service ; path = /usr/local/samba/lib/netlogon ; guest ok = yes ; writable = no ; share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ;[Profiles] ; path = /usr/local/samba/profiles ; browseable = no ; guest ok = yes # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] ; comment = All Printers ; path = /usr/spool/samba ; browseable = no # Set public = yes to allow user 'guest account' to print ; guest ok = no ; writable = no ; printable = yes # This one is useful for people to share files ;[tmp] ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes # A publicly accessible directory, but read only, except for people in # the "staff" group ;[public] ; comment = Public Stuff ; path = /home/samba ; public = yes ; writable = yes ; printable = no ; write list = @staff # Other examples. # # A private printer, usable only by fred. Spool data will be placed in fred's # home directory. Note that fred must have write access to the spool directory, # wherever it is. ;[fredsprn] ; comment = Fred's Printer ; valid users = fred ; path = /homes/fred ; printer = freds_printer ; public = no ; writable = no ; printable = yes # A private directory, usable only by fred. Note that fred requires write # access to the directory. ;[fredsdir] ; comment = Fred's Service ; path = /usr/somewhere/private ; valid users = fred ; public = no ; writable = yes ; printable = no # a service which has a different directory for each machine that connects # this allows you to tailor configurations to incoming machines. You could # also use the %U option to tailor it by user name. # The %m gets replaced with the machine name that is connecting. ;[pchome] ; comment = PC Directories ; path = /usr/pc/%m ; public = no ; writable = yes # A publicly accessible directory, read/write to all users. Note that all files # created in the directory by users will be owned by the default user, so # any user with access can delete any other user's files. Obviously this # directory must be writable by the default user. Another user could of course # be specified, in which case all files would be owned by that user instead. ;[public] ; path = /usr/somewhere/else/public ; public = yes ; only guest = yes ; writable = yes ; printable = no # The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this # setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] ; comment = Mary's and Fred's stuff ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no ; writable = yes ; printable = no ; create mask = 0765 ----------------------------------------- -- Eric Logsdon Cooperative Technologies (404) 315 4450 http://www.coop-tech.com ELogsdon@coop-tech.com
Hi, I have some naive questions about resources sharing between SAMBA machines and between SAMBA and NT machines. (1) I setup one UNIX as PDC by setting workgroup = SAMBA domain logons = yes domain sid = S-1-5-21-123-456-789-123 ... What should I setup for the second SAMBA machine, in order to share its resources to the client machines once they logon to the SAMBA domain? (2) If NT is the PDC, how can SAMBA join into its domain? By setup the following? domain logons = yes domain controller = <NT PDC> ... (3) If SAMBA is the PDC, how can the NT join into its domain? Siwei Zhang Division of Research Kaiser Permanente
I am having a strange problem, and have been reading through the samba files that i normally get and have yet to find a solution to a problem that i am having. Here is the current network configuration. two pc's running windows 95 one pc running slackware linux 2.0.33 ethernet connections workgroup=e.u.a. \\archive_1\ -- Pentium 166 WIN95 \\info_attic\ -- 486DX/66 WIN95 \\arch\ -- 486SX/25 LINUX samba 1.8.17p5 running tcp/ip connection's across the network I can access the win95 boxes using smbclient, i can see the linux box under network neighborhood. However, I can not access the linux box. I keep getting a message that says: \\Arch is not accessible. The computer or sharename could not be found. Make sure you typed it correctly, and try again. I have tried everything that I could think of short of paying for tech support :) I am just at a stand still in trying to get the win95 boxes to recognize the linux box over the network. It just seems strange to me that I can use smbclient out the win95 boxes, can see the linux box on the network neighborhood but yet can not access. Following is a copy of my smb.conf file, if anyone can give me a hand, I followed the examples and tried my best to tailor it to my networking needs, was certain that i had it right but alas, to no avail. Any one who can lend a hand would be greatly appreciated. [global] comment = arch.net announce as = Win95 announce version = 4.0 auto services = archive allow hosts = 192.10.1.0/255.255.255.0 alternate permissions = yes available = yes browseable = yes browse list = yes client code page = 437 config file = /usr/local/samba/lib/smb.conf%m dead time = 0 debug level = 3 default service = pub directory mask = 0755 dns proxy = yes domain controller = no domain logons = no dont descend = /proc, /dev force group = E.U.A. hide dot files = yes hosts equiv = /etc/hosts.equiv keepalive = 60 load printers = no local master = yes log file = /usr/adm/smb.log.%m logon path = \\%L\%U\Profiles\archive message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s postexec = echo \"%u disconnected from %S from %m(%I)\" >> /usr/adm/dis.log preexec = echo \"%u connected to %S from %m (%I)\" >> /usr/adm/con.log protocol = LANMAN smbrun = /usr/local/samba/bin/smbrun max log size = 5000 [homes] comment = arch.net browseable = yes read only = no create mode = 0750 [archive] comment = archive's world path = /home/archive read only = no public = no [tmp] comment = Temporary file zone path = /tmp read only = no public = yes [public] comment = Public Domain path = /home/public public = yes writable = yes Thanks archive _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]
hello, I was wondering if anyone has had the same problem I have or if anyone knows what is going wrong. I have 1.9.18p10 and everything is working fine exept the browsing..hold on dont stop reading just yet. I know there is tons of docs on browsing and problems with it, but this seems to be different than anything in the docs.. The samba server doesn't show up in a regular browse list but if I use "find computer" it shows up no problem. I have Advanced File and Print Server on an SCO box that is acting as the PDC (I believe my problem lies here) and in the log.nmb I get a message "process_lanman_packet: on subnet 192.168.1.8 ignoring browse packet command code 4 from MHI#00600<20> IP 192.168.1.2 to AFPS<00>" where .8 is the samba server and MHI is the SCO box and AFPS is the domain name. If anyone has any suggestions or even tell me I am stupid and where to look in the docs, It would be greatly appreciated. I am trying to show everyone that this little pile of free software can outperform Novell and then some. :) thanks Robert
Everyone, I have Samba 2.0.2 running under Solaris 2.6 and I can connect with no problems under UNIX with the smbclient. Below is the response I get when logging in . /usr/local/samba/bin %smbclient //vance.irss.unc.edu/jonc Added interface ip=152.2.32.88 bcast=152.2.255.255 nmask=255.255.0.0 Password: Domain=[] OS=[Unix] Server=[Samba 2.0.2] smb: \> exit This seems OK but none of the PC at our site can see the server either in network neighborhood or with the command line net view or net use XXXXXX . A run of testparm seems to run OK. We are on a flat network with no router the PC are even on the same switch as the server. I must have something very simple wrong in my conf file . I have tried both the inetd and deamons method for startup with no difference. Any help would be appreciated. Thanks from a newbie! Jon Crabtree
-----BEGIN PGP SIGNED MESSAGE----- jonc@irss.unc.edu writes: > This seems OK but none of the PC at our site can see the server either > in network neighborhood or with the command line net view or > net use XXXXXX . A run of testparm seems to run OK. I would suggest that you take the steps described in docs/textdocs/DIAGNOSIS.txt and describe the results you get. Volker -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBNteccj/9BWnmOc5FAQHqFQQAg63cMNn70bYGD5+Mk22tgesfUa3y/1x/ AuOB7MdMO6IYd53xUj2nNkckjevWKcl5PByMu0Fc4PKViMMObsrEf7BnOpGxiLQM o5GyK3Xutct4ye7clTM5/P760rDWjV3L2vIAugGMltF+weKRQwVw3Chh+dH2+dQf aF5Pvbs78iU=rhuL -----END PGP SIGNATURE-----
Hi, I'm having a problem with a particular server on my network. The globals section is included below, for reference. Two other servers use exactly the same globals section. The other two servers are visible in the browse list from NT workstation in the domain, however, the third machine will not appear. SaMBa version 2.0.5a, the PDC has machine accounts for all the servers, and smbpasswd -j ran correctly on the errant machine, with output to the effect that it had joined the domain. Any ideas... MikeA # Global parameters workgroup = mydomain server string = HP Research & Development Server security = domain encrypt passwords = Yes password server = mypdc log file = /var/log/samba-log.%m max log size = 50 socket options = TCP_NODELAY lock dir = /var/lock/samba comment = HP R&D Server volume = HPDEV3 os level = 0 domain master = no local master = no preferred master = no wins server = 192.168.0.1
How can I enforce the announce of the samba server ? Only after a time my server appear in net ! Thank you ! ------------------------------------------ Fernando Lanner Cardoso Cia. Zaffari Com. & Ind. Analista de Suporte/Inform?tica lanner@zaffari.com.br Porto Alegre - R.S. - Brasil ------------------------------------------
This sounds like the typical master browse list update interval. Not really a Samba issue, at least I don't think it is! Fernando Lanner Cardoso wrote:> > How can I enforce the announce of the samba server ? > Only after a time my server appear in net ! > > Thank you ! > > ------------------------------------------ > Fernando Lanner Cardoso > Cia. Zaffari Com. & Ind. > Analista de Suporte/Inform?tica > lanner@zaffari.com.br > Porto Alegre - R.S. - Brasil > -------------------------------------------- John J. LeMay Jr. NJMC, LLC. http://www.njmc.com
Hi, I've asked this question some days ago but nobody answered me. If it's a Problem with the 'data' included please tell me. I'll try to configure browsing on W2k and ME Clients. But every time I'll get a No such Workgroup error. All clients are in the same Workgroup (no cross Subnets) Samba is configured as local master browser and a guest user is set up. I read the BROWSING.txt and all I think I should have done I've done ;-). The Workgroup name is SYSTEM the samba server is daemon with IP 192.168.1.1 Where does the UNICAST_SUBNET come from? Why is a _SAMBA netbios name added where I've never configuered this? Thanks Tom log.nmb reads as follows: add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet 192.168.1.1 [2001/03/11 16:18:01, 3] nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(244) initiate_myworkgroup_startup: preferred master startup for workgroup SYSTEM on subnet 192.168.1.1 [2001/03/11 16:18:01, 3] nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(173) create_server_on_workgroup: Created server entry DAEMON of type 40019a03 (Samba 2.0.7 [daemon]) on workgroup SYSTEM. [2001/03/11 16:18:01, 3] nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(273) initiate_myworkgroup_startup: Added server name entry DAEMON on subnet 192.168.1.1 [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name DAEMON<20> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name DAEMON<03> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name DAEMON<00> with first IP 192.168.1.1 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name SYSTEM<00> with first IP 192.168.1.1 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) add_name_to_subnet: Added netbios name SYSTEM<1e> with first IP 192.168.1.1 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET [2001/03/11 16:18:01, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(249) Netbios nameserver version 2.0.7 started. Copyright Andrew Tridgell 1994-1998 doing parameter log file = /var/log/samba.log.%m doing parameter max log size = 500 doing parameter name resolve order = lmhosts wins host doing parameter keepalive = 30 doing parameter domain logons = Yes doing parameter os level = 65 doing parameter preferred master = Yes doing parameter domain master = Yes doing parameter socket address doing parameter guest account = tom doing parameter valid users = somebody doing parameter directory mask = 0770 [2001/03/12 20:45:18, 3] param/loadparm.c:lp_load(2805) pm_process() returned Yes [2001/03/12 20:45:18, 3] nmbd/nmbd.c:reload_services(289)
I followed the PDC Howto that mentioned to point to an external WINS source, and the config would leave you as the Browse master and Local Master, thus should allow browsing through it? But when I don't use WINS, and wait, there is no browsing it just tells me '$Domain not available' from windows 2000, and the win98 client. This didn't bother me too bad because I had used local wins on the previous samba. So I just turned wins support = yes and then restarted, rebooted each workstation with the wins address configured, and once again, the Win2k and the Win98 box cannot browse, but the exact same wins config worked last time. When I check the wins.dat file it is populated and has the user logged in, and the workstation to IP, but just doesn't seem to give it out to clients? Anyone see something similar before? Thanks, Trevor Benson Director of Information Technology Associated Business Products
I cannot see any of the computers in my workgroup from windows, looking them up from freebsd works, even querying the subnet for masterbrowser works (from the samba-server (bsd)). Why does this happen? Greetings, Martin.
Alle 06:41, gioved? 30 maggio 2002, Martin Burheim Tingstad ha scritto:> I cannot see any of the computers in my workgroup from windows, looking > them up from freebsd works, even querying the subnet for masterbrowser > works (from the samba-server (bsd)). Why does this happen? > > Greetings, Martin.There is very little information here. I could not help you I think, even if it was there. I am facing the same problem as you, the network knows what is its master browser but it fails to display the neighborhood. My suspects are that there is a problem in name resolution (digging the doc I have found that if name resolution do not work then browsing do not work too). I have been a bit busy lately so I have to check it better. Let me know what was your problem if you find it. Praise
Hi, More problems... getting my monies worth :-) I have two subnets. Basically I cannot get the machines on the subnet that the Samba server is *not* on the join the domain. They just sit there for a couple of minutes and then claim that the domain server cannot be found. Browsing from either subnet only shows machines on that subnet, although if you specify a machine on the "other side" you can connect to shared resources (supplying a suitable username and password) no problem at all. Thanks
In a word - no. Its just three servers, two W2K, one SuSE Linux running Samba. Samba install does not have master browse set or anything. Why should it? Is this my problem. Quoting "Marian Mlcoch, Ing" <mm@tsmp.sk>:> Are you use WINS SERVER on network? > have you any server on second subnet? > > I mean first subnet is with samba. > > ----- Original Message ----- > From: "Howard Miller" <hm51k@udcf.gla.ac.uk> > To: <samba@lists.samba.org> > Sent: Monday, August 04, 2003 12:18 PM > Subject: [Samba] Browsing > > > > Hi, > > > > More problems... getting my monies worth :-) > > > > I have two subnets. Basically I cannot get the machines on the subnet > that > the Samba server is > > *not* on the join the domain. They just sit there for a couple of > minutes > and then claim that the > > domain server cannot be found. > > > > Browsing from either subnet only shows machines on that subnet, > although > if you specify a > > machine on the "other side" you can connect to shared resources > (supplying > a suitable username > > and password) no problem at all. > > > > Thanks > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba >