From owner-freebsd-questions@FreeBSD.ORG Mon Jan 31 12:06:26 2005 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 CE10616A4CE for ; Mon, 31 Jan 2005 12:06:26 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD5FF43D49 for ; Mon, 31 Jan 2005 12:06:25 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j0VC6NYs010815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 Jan 2005 04:06:25 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j0VC6N8r010813 for freebsd-questions@freebsd.org; Mon, 31 Jan 2005 04:06:23 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Mon, 31 Jan 2005 04:06:23 -0800 From: "Loren M. Lang" To: FreeBSD Mailing list Message-ID: <20050131120623.GA10752@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: [lorenl@alzatex.com: Re: Mounting a samba share on boot?] 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: Mon, 31 Jan 2005 12:06:26 -0000 Sorry, forgot to hit group reply. ----- Forwarded message from "Loren M. Lang" ----- Date: Mon, 31 Jan 2005 02:32:14 -0800 From: "Loren M. Lang" To: Mac Mason Subject: Re: Mounting a samba share on boot? On Mon, Jan 31, 2005 at 12:42:29AM -0800, Mac Mason wrote: > Can anybody point me at some documenation for mounting a samba share at boot > time? I'm used to the linux-style trick of adding it to fstab and pointing it > at a credentials file, but am pretty sure that won't work in FreeBSD. Actually, it does, but it's a little different. I use smbfs mounted automatically by fstab on fbsd all the time. Setup the file /etc/nsmb.conf as follows: # First, define a workgroup. [default] workgroup=MYWORKGROUP [SERVER:USER] password=secret replacing MYWORKGROUP, SERVER, USER, secret as neccessary. Make sure nsmb.conf is only readable by root. Add the following line to fstab: //user@server/share /mnt/share smbfs rw 0 0 replacing user, server, share, and the local mount point as neccessary. The permissions for files in the mounted fs will be owned by the user and group of /mnt/share and files will have the same permissions as /mnt/share, but directories will allow have execute permission everywhere that they have read permission so I set /mnt/share with permissions 644 even though it's a directory and set the owner and group to my usual user. Before mount: $ ls -ld /mnt/share drw-r--r-- 1 user users 16384 Dec 31 1969 /mnt/share After mount: b$ ls -l /mnt/proj -rw-r--r-- 1 user users 1120810 May 14 2004 some-file drwxr-xr-x 1 user users 16384 Oct 24 23:35 a-directory > > I'm running 5.3-RELEASE. > > Thanks! > > --Mac > > -- > Julian "Mac" Mason mac@cs.hmc.edu > Computer Science '06 (909)-607-3129 > Harvey Mudd College -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C ----- End forwarded message ----- -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C