Date: Thu, 23 Aug 2001 00:41:05 +0800 From: "Kathy Quinlan" <katinka@magestower.com> To: <questions@FreeBSD.ORG> Subject: SAMBA 2.0.8 Message-ID: <016801c12b29$55aed820$fe00a8c0@wskatinka>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0164_01C12B6C.4AEE0620 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0165_01C12B6C.4AEE0620" ------=_NextPart_001_0165_01C12B6C.4AEE0620 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all,=20 I have RTFM'd, visited websites and looked, and I am still having = problems. I have attached my smb.conf file if I do a "smbclient -L serverbsd" on my server (who's name is = serverbsd) I get the following result: serverbsd# smbclient -L serverbsd added interface ip=3D192.168.0.1 bcast=3D192.168.0.255 = nmask=3D255.255.255.0 Got a positive name query response from 192.168.0.1 ( 192.168.0.1 ) session request to SERVERBSD failed (code 0) Got a positive name query response from 192.168.0.1 ( 192.168.0.1 ) session request to *SMBSERVER failed (code 0) also in my log.smb I get : [2001/08/22 16:36:56, 0] smbd/oplock.c:open_oplock_ipc(93) open_oplock_ipc: Failed to get local UDP socket for address 100007f. = Error was Can't assign requested address I am scratching my head, and going around in circles=20 any healp is appreciated, Regards, Kat. ------=_NextPart_001_0165_01C12B6C.4AEE0620 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi all, </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I have RTFM'd, visited websites and = looked, and I=20 am still having problems.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I have attached my smb.conf = file</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>if I do a "smbclient -L serverbsd" on = my server=20 (who's name is serverbsd) I get the following result:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>serverbsd# smbclient -L = serverbsd<BR>added=20 interface ip=3D192.168.0.1 bcast=3D192.168.0.255 = nmask=3D255.255.255.0<BR>Got a=20 positive name query response from 192.168.0.1 ( 192.168.0.1 )<BR>session = request=20 to SERVERBSD failed (code 0)<BR>Got a positive name query response from=20 192.168.0.1 ( 192.168.0.1 )<BR>session request to *SMBSERVER failed = (code=20 0)<BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>also in my log.smb I get :</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>[2001/08/22 16:36:56, 0]=20 smbd/oplock.c:open_oplock_ipc(93)<BR> open_oplock_ipc: Failed to = get local=20 UDP socket for address 100007f. Error was Can't assign requested=20 address<BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am scratching my head, and going = around in=20 circles </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>any healp is appreciated,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Kat.</FONT></DIV> <DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML> ------=_NextPart_001_0165_01C12B6C.4AEE0620-- ------=_NextPart_000_0164_01C12B6C.4AEE0620 Content-Type: application/octet-stream; name="smb.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="smb.conf" # This is the main Samba configuration file. You should read the=0A= # smb.conf(5) manual page in order to understand the options listed=0A= # here. Samba has a huge number of configurable options (perhaps too=0A= # many!) most of which are not shown in this example=0A= #=0A= # Any line which starts with a ; (semi-colon) or a # (hash) =0A= # is a comment and is ignored. In this example we will use a #=0A= # for commentry and a ; for parts of the config file that you=0A= # may wish to enable=0A= #=0A= # NOTE: Whenever you modify this file you should run the command = "testparm"=0A= # to check that you have not many any basic syntactic errors. =0A= #=0A= #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = Global Settings = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= [global]=0A= =0A= # workgroup =3D NT-Domain-Name or Workgroup-Name, eg: REDHAT4=0A= workgroup =3D Network1=0A= =0A= # server string is the equivalent of the NT Description field=0A= server string =3D Samba %v running on FreeBSD 3.4-Stable=0A= =0A= # This option is important for security. It allows you to restrict=0A= # connections to machines which are on your local network. The=0A= # following example restricts access to two C class networks and=0A= # the "loopback" interface. For more examples of the syntax see=0A= # the smb.conf man page=0A= ; hosts allow =3D 192.168.1. 192.168.2. 127.=0A= =0A= null passwords =3D yes=0A= =0A= # If you want to automatically load your printer list rather=0A= # than setting them up individually then you'll need this=0A= load printers =3D yes=0A= =0A= # you may wish to override the location of the printcap file=0A= ; printcap name =3D /etc/printcap=0A= =0A= # on SystemV system setting printcap name to lpstat should allow=0A= # you to automatically obtain a printer list from the SystemV spool=0A= # system=0A= ; printcap name =3D lpstat=0A= =0A= # It should not be necessary to specify the print system type unless=0A= # it is non-standard. Currently supported print systems include:=0A= # bsd, sysv, plp, lprng, aix, hpux, qnx=0A= ; printing =3D bsd=0A= =0A= # Uncomment this if you want a guest account, you must add this to = /etc/passwd=0A= # otherwise the user "nobody" is used=0A= guest account =3D pcguest=0A= =0A= # this tells Samba to use a separate log file for each machine=0A= # that connects=0A= log file =3D /var/log/log.%m=0A= =0A= # Put a capping on the size of the log files (in Kb).=0A= max log size =3D 50=0A= =0A= # Security mode. Most people will want user level security. See=0A= # security_level.txt for details.=0A= security =3D SHARE=0A= # Use password server option only with security =3D server=0A= ; password server =3D <NT-Server-Name>=0A= =0A= # You may wish to use password encryption. Please read=0A= # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.=0A= # Do not enable this option unless you have read those documents=0A= =0A= encrypt passwords =3D yes=0A= password level =3D 2=0A= username level =3D 2 =0A= lock dir =3D /usr/local/locks=0A= =0A= =0A= # Using the following line enables you to customise your configuration=0A= # on a per machine basis. The %m gets replaced with the netbios name=0A= # of the machine that is connecting=0A= ; include =3D /usr/local/etc/smb.conf.%m=0A= =0A= # Most people will find that this option gives better performance.=0A= # See speed.txt and the manual pages for details=0A= socket options =3D TCP_NODELAY =0A= =0A= # Configure Samba to use multiple interfaces=0A= # If you have multiple network interfaces then you must list them=0A= # here. See the man page for details.=0A= interfaces =3D 192.168.0.1/24=0A= =0A= =0A= # Browser Control Options:=0A= # set local master to no if you don't want Samba to become a master=0A= # browser on your network. Otherwise the normal election rules apply=0A= ; local master =3D no=0A= =0A= # OS Level determines the precedence of this server in master browser=0A= # elections. The default value should be reasonable=0A= ; os level =3D 33=0A= =0A= # Domain Master specifies Samba to be the Domain Master Browser. This=0A= # allows Samba to collate browse lists between subnets. Don't use this=0A= # if you already have a Windows NT domain controller doing this job=0A= ; domain master =3D yes =0A= =0A= # Preferred Master causes Samba to force a local browser election on = startup=0A= # and gives it a slightly higher chance of winning the election=0A= ; preferred master =3D yes=0A= =0A= # Use only if you have an NT server on your network that has been=0A= # configured at install time to be a primary domain controller.=0A= ; domain controller =3D <NT-Domain-Controller-SMBName>=0A= =0A= # Enable this if you want Samba to be a domain logon server for =0A= # Windows95 workstations. =0A= ; domain logons =3D yes=0A= =0A= # if you enable domain logons then you may want a per-machine or=0A= # per user logon script=0A= # run a specific logon batch file per workstation (machine)=0A= ; logon script =3D %m.bat=0A= # run a specific logon batch file per username=0A= ; logon script =3D %U.bat=0A= =0A= # Where to store roving profiles (only for Win95 and WinNT)=0A= # %L substitutes for this servers netbios name, %U is username=0A= # You must uncomment the [Profiles] share below=0A= ; logon path =3D \\%L\Profiles\%U=0A= =0A= # Windows Internet Name Serving Support Section:=0A= # WINS Support - Tells the NMBD component of Samba to enable it's WINS = Server=0A= ; wins support =3D yes=0A= =0A= # WINS Server - Tells the NMBD components of Samba to be a WINS Client=0A= # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both=0A= ; wins server =3D w.x.y.z=0A= =0A= # WINS Proxy - Tells Samba to answer name resolution queries on=0A= # behalf of a non WINS capable client, for this to work there must be=0A= # at least one WINS Server on the network. The default is NO.=0A= ; wins proxy =3D yes=0A= =0A= # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names=0A= # via DNS nslookups. The built-in default for versions 1.9.17 is yes,=0A= # this has been changed in version 1.9.18 to no.=0A= dns proxy =3D no =0A= =0A= # Client codepage settings=0A= =0A= # for Greek users=0A= ; client code page=3D737=0A= =0A= # for European users (Latin 1)=0A= ; client code page=3D850=0A= =0A= # for European users (Latin 2)=0A= ; client code page=3D852=0A= =0A= # for Icelandic users=0A= ; client code page=3D861=0A= =0A= # for Cyrillic users=0A= ; client code page=3D866=0A= =0A= # for Japanese Users=0A= ; client code page=3D932=0A= ; coding system=3Dcap=0A= =0A= # for Simplified Chinese Users=0A= ; client code page=3D936=0A= ; coding system=3Dcap=0A= =0A= # for Korean Users=0A= ; client code page=3D949=0A= ; coding system=3Dcap=0A= =0A= # for Traditional Chinese Users=0A= ; client code page=3D950=0A= ; coding system=3Dcap=0A= =0A= #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Share Definitions = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=0A= [homes]=0A= comment =3D Home Directories=0A= browseable =3D no=0A= writeable =3D yes=0A= =0A= # Un-comment the following and create the netlogon directory for Domain = Logons=0A= ; [netlogon]=0A= ; comment =3D Network Logon Service=0A= ; path =3D /usr/local/samba/lib/netlogon=0A= ; guest ok =3D yes=0A= ; writeable =3D no=0A= ; share modes =3D no=0A= =0A= =0A= # Un-comment the following to provide a specific roving profile share=0A= # the default is to use the user's home directory=0A= ;[Profiles]=0A= ; path =3D /usr/local/samba/profiles=0A= ; browseable =3D no=0A= ; guest ok =3D yes=0A= =0A= =0A= # NOTE: If you have a BSD-style print system there is no need to =0A= # specifically define each individual printer=0A= [printers]=0A= comment =3D All Printers=0A= path =3D /var/spool/samba=0A= browseable =3D no=0A= # Set public =3D yes to allow user 'guest account' to print=0A= guest ok =3D no=0A= writeable =3D no=0A= printable =3D yes=0A= =0A= # This one is useful for people to share files=0A= [tmp]=0A= comment =3D Temporary file space=0A= path =3D /usr/tmp=0A= read only =3D no=0A= ; public =3D yes=0A= directory mask =3D 0775=0A= guest ok =3D Yes=0A= browseable =3D No=0A= =0A= # A publicly accessible directory, but read only, except for people in=0A= # the "staff" group=0A= ;[public]=0A= ; comment =3D Public Stuff=0A= ; path =3D /home/samba=0A= ; public =3D yes=0A= ; writeable =3D yes=0A= ; printable =3D no=0A= ; write list =3D @staff=0A= =0A= # Other examples. =0A= #=0A= # A private printer, usable only by fred. Spool data will be placed in = fred's=0A= # home directory. Note that fred must have write access to the spool = directory,=0A= # wherever it is.=0A= ;[fredsprn]=0A= ; comment =3D Fred's Printer=0A= ; valid users =3D fred=0A= ; path =3D /homes/fred=0A= ; printer =3D freds_printer=0A= ; public =3D no=0A= ; writeable =3D no=0A= ; printable =3D yes=0A= =0A= # A private directory, usable only by fred. Note that fred requires write=0A= # access to the directory.=0A= ;[fredsdir]=0A= ; comment =3D Fred's Service=0A= ; path =3D /usr/somewhere/private=0A= ; valid users =3D fred=0A= ; public =3D no=0A= ; writeable =3D yes=0A= ; printable =3D no=0A= =0A= # a service which has a different directory for each machine that = connects=0A= # this allows you to tailor configurations to incoming machines. You = could=0A= # also use the %U option to tailor it by user name.=0A= # The %m gets replaced with the machine name that is connecting.=0A= ;[pchome]=0A= ; comment =3D PC Directories=0A= ; path =3D /usr/pc/%m=0A= ; public =3D no=0A= ; writeable =3D yes=0A= =0A= # A publicly accessible directory, read/write to all users. Note that = all files=0A= # created in the directory by users will be owned by the default user, so=0A= # any user with access can delete any other user's files. Obviously this=0A= # directory must be writeable by the default user. Another user could of = course=0A= # be specified, in which case all files would be owned by that user = instead.=0A= ;[public]=0A= ; path =3D /usr/somewhere/else/public=0A= ; public =3D yes=0A= ; only guest =3D yes=0A= ; writeable =3D yes=0A= ; printable =3D no=0A= =0A= # The following two entries demonstrate how to share a directory so that = two=0A= # users can place files there that will be owned by the specific users. = In this=0A= # setup, the directory should be writeable by both users and should have = the=0A= # sticky bit set on it to prevent abuse. Obviously this could be = extended to=0A= # as many users as required.=0A= ;[myshare]=0A= ; comment =3D Mary's and Fred's stuff=0A= ; path =3D /usr/somewhere/shared=0A= ; valid users =3D mary fred=0A= ; public =3D no=0A= ; writeable =3D yes=0A= ; printable =3D no=0A= ; create mask =3D 0765=0A= =0A= =0A= ------=_NextPart_000_0164_01C12B6C.4AEE0620-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016801c12b29$55aed820$fe00a8c0>