From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 01:58:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A25B837B401 for ; Fri, 13 Jun 2003 01:58:20 -0700 (PDT) Received: from fed1mtao03.cox.net (fed1mtao03.cox.net [68.6.19.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7735E43FD7 for ; Fri, 13 Jun 2003 01:58:19 -0700 (PDT) (envelope-from chive@cox.net) Received: from anoat.phoenix.net ([68.98.91.5]) by fed1mtao03.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030613085816.JNKF5853.fed1mtao03.cox.net@anoat.phoenix.net>; Fri, 13 Jun 2003 04:58:16 -0400 Received: from anoat.phoenix.net (chive@localhost [127.0.0.1]) by anoat.phoenix.net (8.12.9/8.12.9) with ESMTP id h5D8wHJT015436; Fri, 13 Jun 2003 01:58:17 -0700 (MST) (envelope-from chive@anoat.phoenix.net) Received: (from chive@localhost) by anoat.phoenix.net (8.12.9/8.12.9/Submit) id h5D8wHEn015435; Fri, 13 Jun 2003 01:58:17 -0700 (MST) Date: Fri, 13 Jun 2003 01:58:17 -0700 From: Nicolas Galler To: "Scott R." Message-ID: <20030613085817.GA15383@anoat.phoenix> Mail-Followup-To: "Scott R." , freebsd-questions@freebsd.org References: <000301c3317d$60a38cb0$1800a8c0@reverend> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000301c3317d$60a38cb0$1800a8c0@reverend> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) cc: freebsd-questions@freebsd.org Subject: Re: Possibly Silly Samba Configuration Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 08:58:21 -0000 On Fri, Jun 13, 2003 at 12:28:12AM -0700, Scott R. wrote: > [please cc: me in any replies as I'm not currently subscribed to this > list. Thank you.] > > I recently did a clean install of FreeBSD 4.8 on my gateway/firewall > box. Unfortunately, I did not have the foresight to save my old > smb.conf file for Samba before I reinstalled the OS (silly me). I use > Samba to provide one shared folder full of music, movies, etc. to my > internal network at home and previously had it set up to where anyone > inside could browse or write to it (meaning I just "trust everyone" on > my network). I didn't remember this being terribly difficult as this > configuration should be incredibly simple to achieve but I was wrong. > > My current smb.conf looks like this: > > [global] > workgroup = MYWORKGROUP > netbios name = MYGATEWAYBOX > security = SHARE > hosts allow = 192.168.0. > > [Shared] > path = /u1 > read only = No > guest ok = Yes > I believe you need to set the "guest account" parameter to whoever owns the file in /u1 (otherwise, accessing the share thru samba is effectively using the permission of the default guest account, "nobody" or such). Regards Nick