From owner-freebsd-questions Thu Mar 22 13: 8:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.atl.mediaone.net (atlasmtp.atl.mediaone.net [65.32.2.34]) by hub.freebsd.org (Postfix) with ESMTP id 576FF37B71B for ; Thu, 22 Mar 2001 13:07:50 -0800 (PST) (envelope-from mikenoc@mindspring.net) Received: from mediaone (client122025.atl.mediaone.net [24.31.122.25]) by smtp.atl.mediaone.net (8.8.7/8.8.7) with SMTP id QAA27103 for ; Thu, 22 Mar 2001 16:07:48 -0500 (EST) Message-ID: <002601c0b32d$d76fc320$0200a8c0@mediaone.net> From: "mike" To: Subject: Samba issues Date: Thu, 22 Mar 2001 16:11:42 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0023_01C0B2EA.C8ADD220" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C0B2EA.C8ADD220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ** With this error Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 07:30:05, 0] lib/util_sock.c:open_socket_in(827) Since I dont own the domain nuggie.net so frogger.nuggie.net obviosly = will be invalid should I add IP's for the host names of the machines = somewhere ? ----- Original Message ----- From: "mike" To: "Jonathan Chen" Cc: Sent: Wednesday, March 21, 2001 9:18 PM Subject: Re: Samba issues > ** When I try and grep it looks like its not running > > frogger# ps ax | grep smbd > 27726 p4 R+ 0:00.00 grep smbd > frogger# > > *** Heres a copy of /var/log/log.smb > > [2001/03/21 07:22:38, 1] smbd/files.c:file_init(216) > file_init: Information only: requested 10000 open files, 1054 are > available. > [2001/03/21 07:22:38, 0] lib/util_sock.c:open_socket_in(827) > Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 07:30:04, 1] smbd/server.c:main(641) > smbd version 2.0.7 started. > Copyright Andrew Tridgell 1992-1998 > [2001/03/21 07:30:04, 1] smbd/files.c:file_init(216) > file_init: Information only: requested 10000 open files, 1054 are > available. > [2001/03/21 07:30:04, 0] lib/util_sock.c:open_socket_in(827) > Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 07:36:50, 1] smbd/server.c:main(641) > smbd version 2.0.7 started. > Copyright Andrew Tridgell 1992-1998 > [2001/03/21 07:36:50, 1] smbd/files.c:file_init(216) > file_init: Information only: requested 10000 open files, 1054 are > available > > **** Heres a copy of /var/log/log.nmb > > [2001/03/21 07:30:05, 0] lib/util_sock.c:open_socket_in(827) > Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 07:30:05, 0] lib/util_sock.c:open_socket_in(827) > Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 07:36:50, 1] nmbd/nmbd.c:main(757) > Netbios nameserver version 2.0.7 started. > Copyright Andrew Tridgell 1994-1998 > [2001/03/21 07:36:50, 0] lib/util_sock.c:open_socket_in(827) > Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 07:36:50, 0] lib/util_sock.c:open_socket_in(827) > Get_Hostbyname: Unknown host frogger.nuggie.net > [2001/03/21 17:13:18, 1] nmbd/nmbd.c:main(757) > Netbios nameserver version 2.0.7 started. > > *** It looks like it doesnt like frogger.nuggie.net. monkey is > the computer name for the 98 machine. frogger is the computer name for = the > BSD machine. nuggie.net is the workgroup. Also when I was going threw = the > setup I named nuggie.net the domain on the BSD box. I put a copy of = the > samba config below. > > I apprecaite youre help Jonathan :) > > **** Here is a copy of some of the Samba config > > # workgroup =3D NT-Domain-Name or Workgroup-Name, eg: REDHAT4 > workgroup =3D nuggie.net > > # server string is the equivalent of the NT Description field > server string =3D Samba Server > > # 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 =3D 192.168.1. 192.168.2. 127. > > # 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 =3D yes > > # 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 =3D /usr/local/etc/smb.conf.monkey > > # Most people will find that this option gives better performance. > # See speed.txt and the manual pages for details > socket options =3D TCP_NODELAY > > # Configure Samba to use multiple interfaces > # If you have multiple network interfaces then you must list them > > ; interfaces =3D 192.168.12.2/24 192.168.13.2/24 > ; interfaces =3D 192.168.0.2/24 192.168.0.1/24 > # 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 =3D no > > # OS Level determines the precedence of this server in master browser > # elections. The default value should be reasonable > # 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 =3D 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 =3D > > # Enable this if you want Samba to be a domain logon server for > # Windows95 workstations. > ; domain logons =3D yes > > # if you enable domain logons then you may want a per-machine or > > > > > ----- Original Message ----- > From: "Jonathan Chen" > To: "mike" > Cc: > Sent: Wednesday, March 21, 2001 4:00 PM > Subject: Re: Samba issues > > > > On Wed, Mar 21, 2001 at 06:28:17PM -0800, mike wrote: > > > I am having trouble getting Samba working. > > > I am running 4.1.1 stable and trying to get > > > samba working with 98. I got the latest version of Samba witch I believe > is 2.0.7 and > > > edited the config file. I get the following error when running smbstatus > > > **** > > > > > > frogger# smbstatus > > > Couldn't open status file /var/spool/lock/STATUS..LCK > > > frogger# > > > > This happens if samba isn't running; possibly because you haven't > > started it yet, or your config file has errors. > > > > > > > > also when I try and run samba by doing a = /usr/local/etc/rc.d/samba.sh > > > > > > . It wont let me do it unless I am root and it does change the = prompt > from frogger to Sambafrogger. So I dont know if I am close or not to > > > > > > get it working. > > > > Samba can only be started by root. Once it's running you should be > > able to do a: > > > > # ps ax | grep smbd > > 257 ?? Is 0:00.01 /usr/local/sbin/smbd -D > > > > (process-id may differ, of course) > > > > Check out /var/log/log.smb and /var/log/log.nmb for further details = if > > you have other problems. > > -- > > Jonathan Chen > > = ------------------------------------------------------------------------ > > "We laugh in the face of danger, we drop icecubes down the vest of = fear" > > - Edmond Blackadder = III > ------=_NextPart_000_0023_01C0B2EA.C8ADD220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
** With this error
Get_Hostbyname: = Unknown=20 host frogger.nuggie.net
> [2001/03/21 07:30:05, 0]=20 lib/util_sock.c:open_socket_in(827)

Since I dont own the domain=20 nuggie.net so frogger.nuggie.net obviosly will
be invalid should I = add IP's=20 for the host names of the machines somewhere ?


----- Original = Message=20 -----
From: "mike" <
mikenoc@mindspring.net
>
To: = "Jonathan Chen"=20 <
jonathan.chen@itouch.co.nz>
Cc: = <
freebsd-questions@FreeBSD.ORG>
Sent:=20 Wednesday, March 21, 2001 9:18 PM
Subject: Re: Samba = issues


>=20 **  When I try and grep it looks like its not = running
>
>=20 frogger# ps ax | grep smbd
> 27726  p4 =20 R+     0:00.00 grep smbd
>=20 frogger#
>
>  *** Heres a copy of=20 /var/log/log.smb
>
> [2001/03/21 07:22:38, 1]=20 smbd/files.c:file_init(216)
>   file_init: Information = only:=20 requested 10000 open files, 1054 are
> available.
> = [2001/03/21=20 07:22:38, 0] lib/util_sock.c:open_socket_in(827)
>  =20 Get_Hostbyname: Unknown host frogger.nuggie.net
> [2001/03/21 = 07:30:04, 1]=20 smbd/server.c:main(641)
>   smbd version 2.0.7=20 started.
>   Copyright Andrew Tridgell 1992-1998
> = [2001/03/21 07:30:04, 1] smbd/files.c:file_init(216)
>   = file_init: Information only: requested 10000 open files, 1054 = are
>=20 available.
> [2001/03/21 07:30:04, 0]=20 lib/util_sock.c:open_socket_in(827)
>   Get_Hostbyname: = Unknown=20 host frogger.nuggie.net
> [2001/03/21 07:36:50, 1]=20 smbd/server.c:main(641)
>   smbd version 2.0.7=20 started.
>   Copyright Andrew Tridgell 1992-1998
> = [2001/03/21 07:36:50, 1] smbd/files.c:file_init(216)
>   = file_init: Information only: requested 10000 open files, 1054 = are
>=20 available
>
>  **** Heres a copy of=20 /var/log/log.nmb
>
> [2001/03/21 07:30:05, 0]=20 lib/util_sock.c:open_socket_in(827)
>   Get_Hostbyname: = Unknown=20 host frogger.nuggie.net
> [2001/03/21 07:30:05, 0]=20 lib/util_sock.c:open_socket_in(827)
>   Get_Hostbyname: = Unknown=20 host frogger.nuggie.net
> [2001/03/21 07:36:50, 1]=20 nmbd/nmbd.c:main(757)
>   Netbios nameserver version = 2.0.7=20 started.
>   Copyright Andrew Tridgell 1994-1998
> = [2001/03/21 07:36:50, 0] = lib/util_sock.c:open_socket_in(827)
>  =20 Get_Hostbyname: Unknown host frogger.nuggie.net
> [2001/03/21 = 07:36:50, 0]=20 lib/util_sock.c:open_socket_in(827)
>   Get_Hostbyname: = Unknown=20 host frogger.nuggie.net
> [2001/03/21 17:13:18, 1]=20 nmbd/nmbd.c:main(757)
>   Netbios nameserver version = 2.0.7=20 started.
>
>  *** It looks like it doesnt like=20 frogger.nuggie.net. monkey is
> the computer name for the 98 = machine.=20 frogger is the computer name for the
> BSD machine. nuggie.net is = the=20 workgroup. Also when I was going threw the
> setup I named = nuggie.net the=20 domain on the BSD box. I put a copy of the
> samba config=20 below.
>
>  I apprecaite youre help Jonathan=20 :)
>
>  **** Here is a copy of some of the Samba=20 config
>
> # workgroup =3D NT-Domain-Name or Workgroup-Name, = eg:=20 REDHAT4
>    workgroup =3D = nuggie.net
>
> #=20 server string is the equivalent of the NT Description=20 field
>    server string =3D Samba = Server
>
> #=20 This option is important for security. It allows you to restrict
> = #=20 connections to machines which are on your local network. The
> # = following=20 example restricts access to two C class networks and
> # the = "loopback"=20 interface. For more examples of the syntax see
> # the smb.conf = man=20 page
> ;   hosts allow =3D 192.168.1. 192.168.2.=20 127.
>
> # You may wish to use password encryption. Please=20 read
> # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba=20 documentation.
> # Do not enable this option unless you have read = those=20 documents
> ;  encrypt passwords =3D yes
>
> # = Using the=20 following line enables you to customise your configuration
> # on = a per=20 machine basis. The %m gets replaced with the netbios name
> # of = the=20 machine that is connecting
> ;   include =3D=20 /usr/local/etc/smb.conf.monkey
>
> # Most people will find = that this=20 option gives better performance.
> # See speed.txt and the manual = pages=20 for details
>    socket options =3D=20 TCP_NODELAY
>
> # Configure Samba to use multiple = interfaces
>=20 # If you have multiple network interfaces then you must list=20 them
>
> ;   interfaces =3D 192.168.12.2/24=20 192.168.13.2/24
> ;   interfaces =3D 192.168.0.2/24=20 192.168.0.1/24
> # Browser Control Options:
> # set local = master to=20 no if you don't want Samba to become a master
> # browser on your = network.=20 Otherwise the normal election rules apply
> ;   local = master =3D=20 no
>
> # OS Level determines the precedence of this server = in master=20 browser
> # elections. The default value should be = reasonable
> #=20 Preferred Master causes Samba to force a local browser election=20 on
startup
> # and gives it a slightly higher chance of winning = the=20 election
> ;   preferred master =3D yes
>
> = # Use only=20 if you have an NT server on your network that has been
> # = configured at=20 install time to be a primary domain controller.
> #;   = domain=20 controller =3D <NT-Domain-Controller-SMBName>
>
> # = Enable this=20 if you want Samba to be a domain logon server for
> # Windows95=20 workstations.
> ;   domain logons =3D = yes
>
> # if you=20 enable domain logons then you may want a per-machine=20 or
>
>
>
>
> ----- Original Message = -----
>=20 From: "Jonathan Chen" <
jonathan.chen@itouch.co.nz>
> To: "mike"=20 <
mikenoc@mindspring.net>
> = Cc:=20 <
freebsd-questions@FreeBSD.ORG>
> Sent:=20 Wednesday, March 21, 2001 4:00 PM
> Subject: Re: Samba=20 issues
>
>
> > On Wed, Mar 21, 2001 at 06:28:17PM = -0800,=20 mike wrote:
> > > I am having trouble getting Samba = working.
>=20 > > I am running 4.1.1 stable and trying to get
> > > = samba=20 working with 98. I got the latest version of Samba witch = I
believe
> is=20 2.0.7 and
> > > edited the config file. I get the following = error=20 when running
smbstatus
> > > ****
> > = >
> >=20 > frogger# smbstatus
> > > Couldn't open status file=20 /var/spool/lock/STATUS..LCK
> > > frogger#
> = >
> >=20 This happens if samba isn't running; possibly because you = haven't
> >=20 started it yet, or your config file has errors.
> >
> = >=20 >
> > > also when I try and run samba by doing a=20 /usr/local/etc/rc.d/samba.sh
> > >
> > > . It = wont let=20 me do it unless I am root and it does change the prompt
> from = frogger to=20 Sambafrogger. So I dont know if I am close or not to
> > = >
>=20 > > get it working.
> >
> > Samba can only be = started by=20 root. Once it's running you should be
> > able to do a:
> = >
> > # ps ax | grep smbd
> = >    =20 257  ??  Is     0:00.01 = /usr/local/sbin/smbd=20 -D
> >
> > (process-id may differ, of course)
>=20 >
> > Check out /var/log/log.smb and /var/log/log.nmb for = further=20 details if
> > you have other problems.
> > --
> = >=20 Jonathan Chen <
jonathan.chen@itouch.co.nz>
> >=20 ------------------------------------------------------------------------<= BR>>=20 > "We laugh in the face of danger, we drop icecubes down the vest of=20 fear"
>=20 >           &nb= sp;           &nbs= p;            = ;            =  =20 - Edmond Blackadder III
>

------=_NextPart_000_0023_01C0B2EA.C8ADD220-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message