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