Skip site navigation (1)Skip section navigation (2)
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>&gt; [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" &lt;</FONT><A =
href=3D"mailto:mikenoc@mindspring.net"><FONT=20
size=3D3>mikenoc@mindspring.net</FONT></A><FONT size=3D3>&gt;<BR>To: =
"Jonathan Chen"=20
&lt;</FONT><A href=3D"mailto:jonathan.chen@itouch.co.nz"><FONT=20
size=3D3>jonathan.chen@itouch.co.nz</FONT></A><FONT size=3D3>&gt;<BR>Cc: =

&lt;</FONT><A href=3D"mailto:freebsd-questions@FreeBSD.ORG"><FONT=20
size=3D3>freebsd-questions@FreeBSD.ORG</FONT></A><FONT =
size=3D3>&gt;<BR>Sent:=20
Wednesday, March 21, 2001 9:18 PM<BR>Subject: Re: Samba =
issues<BR><BR><BR>&gt;=20
**&nbsp; When I try and grep it looks like its not =
running<BR>&gt;<BR>&gt;=20
frogger# ps ax | grep smbd<BR>&gt; 27726&nbsp; p4&nbsp;=20
R+&nbsp;&nbsp;&nbsp;&nbsp; 0:00.00 grep smbd<BR>&gt;=20
frogger#<BR>&gt;<BR>&gt;&nbsp; *** Heres a copy of=20
/var/log/log.smb<BR>&gt;<BR>&gt; [2001/03/21 07:22:38, 1]=20
smbd/files.c:file_init(216)<BR>&gt;&nbsp;&nbsp; file_init: Information =
only:=20
requested 10000 open files, 1054 are<BR>&gt; available.<BR>&gt; =
[2001/03/21=20
07:22:38, 0] lib/util_sock.c:open_socket_in(827)<BR>&gt;&nbsp;&nbsp;=20
Get_Hostbyname: Unknown host frogger.nuggie.net<BR>&gt; [2001/03/21 =
07:30:04, 1]=20
smbd/server.c:main(641)<BR>&gt;&nbsp;&nbsp; smbd version 2.0.7=20
started.<BR>&gt;&nbsp;&nbsp; Copyright Andrew Tridgell 1992-1998<BR>&gt; =

[2001/03/21 07:30:04, 1] smbd/files.c:file_init(216)<BR>&gt;&nbsp;&nbsp; =

file_init: Information only: requested 10000 open files, 1054 =
are<BR>&gt;=20
available.<BR>&gt; [2001/03/21 07:30:04, 0]=20
lib/util_sock.c:open_socket_in(827)<BR>&gt;&nbsp;&nbsp; Get_Hostbyname: =
Unknown=20
host frogger.nuggie.net<BR>&gt; [2001/03/21 07:36:50, 1]=20
smbd/server.c:main(641)<BR>&gt;&nbsp;&nbsp; smbd version 2.0.7=20
started.<BR>&gt;&nbsp;&nbsp; Copyright Andrew Tridgell 1992-1998<BR>&gt; =

[2001/03/21 07:36:50, 1] smbd/files.c:file_init(216)<BR>&gt;&nbsp;&nbsp; =

file_init: Information only: requested 10000 open files, 1054 =
are<BR>&gt;=20
available<BR>&gt;<BR>&gt;&nbsp; **** Heres a copy of=20
/var/log/log.nmb<BR>&gt;<BR>&gt; [2001/03/21 07:30:05, 0]=20
lib/util_sock.c:open_socket_in(827)<BR>&gt;&nbsp;&nbsp; Get_Hostbyname: =
Unknown=20
host frogger.nuggie.net<BR>&gt; [2001/03/21 07:30:05, 0]=20
lib/util_sock.c:open_socket_in(827)<BR>&gt;&nbsp;&nbsp; Get_Hostbyname: =
Unknown=20
host frogger.nuggie.net<BR>&gt; [2001/03/21 07:36:50, 1]=20
nmbd/nmbd.c:main(757)<BR>&gt;&nbsp;&nbsp; Netbios nameserver version =
2.0.7=20
started.<BR>&gt;&nbsp;&nbsp; Copyright Andrew Tridgell 1994-1998<BR>&gt; =

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

&gt;<BR>&gt; &gt; # ps ax | grep smbd<BR>&gt; =
&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
257&nbsp; ??&nbsp; Is&nbsp;&nbsp;&nbsp;&nbsp; 0:00.01 =
/usr/local/sbin/smbd=20
-D<BR>&gt; &gt;<BR>&gt; &gt; (process-id may differ, of course)<BR>&gt;=20
&gt;<BR>&gt; &gt; Check out /var/log/log.smb and /var/log/log.nmb for =
further=20
details if<BR>&gt; &gt; you have other problems.<BR>&gt; &gt; --<BR>&gt; =
&gt;=20
Jonathan Chen &lt;</FONT><A =
href=3D"mailto:jonathan.chen@itouch.co.nz"><FONT=20
size=3D3>jonathan.chen@itouch.co.nz</FONT></A><FONT =
size=3D3>&gt;<BR>&gt; &gt;=20
------------------------------------------------------------------------<=
BR>&gt;=20
&gt; "We laugh in the face of danger, we drop icecubes down the vest of=20
fear"<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
- Edmond Blackadder III<BR>&gt;</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>