From owner-freebsd-questions Wed Mar 21 18:15: 5 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 4933937B71A for ; Wed, 21 Mar 2001 18:14:58 -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 VAA04751; Wed, 21 Mar 2001 21:14:46 -0500 (EST) Message-ID: <001f01c0b28f$8e73e000$0200a8c0@mediaone.net> From: "mike" To: "Jonathan Chen" Cc: References: <003b01c0b277$c4347b40$0200a8c0@mediaone.net> <20010322120022.A99549@itouchnz.itouch> Subject: Re: Samba issues Date: Wed, 21 Mar 2001 21:18:39 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 ** 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 = NT-Domain-Name or Workgroup-Name, eg: REDHAT4 workgroup = nuggie.net # server string is the equivalent of the NT Description field server string = 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 = 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 = 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 = /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 = TCP_NODELAY # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them ; interfaces = 192.168.12.2/24 192.168.13.2/24 ; interfaces = 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 = 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 = 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 = # 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 ----- 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message