From owner-freebsd-questions@FreeBSD.ORG Thu Jun 14 16:36:27 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 51B5116A41F for ; Thu, 14 Jun 2007 16:36:27 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 319D413C43E for ; Thu, 14 Jun 2007 16:36:22 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [172.18.0.137] (sky_cpfw-1.tulsatech.org [70.168.226.130]) by a.cs.okstate.edu (Postfix) with ESMTP id 2508EA062C; Thu, 14 Jun 2007 11:36:21 -0500 (CDT) Message-ID: <46716E83.5020904@cs.okstate.edu> Date: Thu, 14 Jun 2007 11:36:19 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.0 (X11/20070517) MIME-Version: 1.0 To: Andrew Falanga References: <340a29540706140802g662c38cepae1b597f18ebc020@mail.gmail.com> <46716143.1020409@cs.okstate.edu> <467161B7.9060806@cs.okstate.edu> <340a29540706140907g2ea31624t29159c514049ed5c@mail.gmail.com> In-Reply-To: <340a29540706140907g2ea31624t29159c514049ed5c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: samba config problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 16:36:27 -0000 Written by Andrew Falanga on 06/14/07 11:07>> > On 6/14/07, Reid Linnemann wrote: >> Written by Reid Linnemann on 06/14/07 10:39>> >> > Written by Andrew Falanga on 06/14/07 10:02>> >> >> I'm trying to get samba working in a test environment. I do not need >> >> great functionality, so I'm going off of the simple setup stuff in the >> >> Handbook. This should be enough. I've configured my >> >> /usr/local/etc/smb.conf file for a single share (the /tmp share) and >> >> changed the workgroup name and set passwd backend = smbpasswd; I then >> >> tried to start samba with /usr/local/etc/rc.d/samba start. After >> >> this, I get only, "Removing stale Samba tdb files: done." The >> >> handbook shows that I should see, >> >> >> >> Starting SAMBA: removing stale tdbs : >> >> Starting nmbd. >> >> Starting smbd. >> >> >> >> I then tried "sockstat" and did not see any listening sockets for the >> >> daemon "smbd." I don't know if I would, but I wanted to try this. >> >> I'm not convinced at this point that I'm actually getting samba to >> >> start. How can I verify this? >> >> >> >> I'm trying to add users to the smbpasswd file using smbpasswd, but >> >> this is to no avail. What am I doing wrong? >> >> >> >> Andy >> >> _______________________________________________ >> >> freebsd-questions@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> >> To unsubscribe, send any mail to >> >> "freebsd-questions-unsubscribe@freebsd.org" >> > >> > Did you put 'smbd_enable="yes"' in /etc/rc.conf? >> > _______________________________________________ >> > freebsd-questions@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> > To unsubscribe, send any mail to >> > "freebsd-questions-unsubscribe@freebsd.org" >> >> Sorry, that should read 'samba_enable="yes"' >> > > No, I do not want samba running all the time. Only in certain > situations. Apparently, the /usr/local/etc/rc.d/samba > {start,stop,restart} script does not start samba. I do not know why. > If I start smbd directly, it starts up and I can browse/connect using > smbclient. So, I think that the problem is fixed, for the most part. > I'm still wondering why the system didn't start when using the samba > script in the local rc.d directory. > > Oh, my user problem was due to the fact that the user I was trying to > add to samba didn't exist on the server yet. I had to do "pw useradd > ..." first. That's what I get for working on so many machines that I > can't keep track. > > Thanks, > Andy Don't forget to cc: freebsd-questions@freebsd.org The rc script at /usr/local/etc/rc.d/samba follows the FreeBSD rcng scheme, if the rcvar 'samba_enable' is not set to 'yes', then the script will not start or stop the samba process. Run the script without any commands to see usage. To check the status of rcvars that control the script's behavior, run the script with the 'rcvar' argument; e.g. ~/> /usr/local/etc/rc.d/samba rcvar # samba $samba_enable=YES # nmbd $nmbd_enable=YES # smbd $smbd_enable=YES # winbindd $winbindd_enable=NO Note that nothign is stopping you from running smbd and nmbd manually, the rc control script simply automates the control of the daemon for you.