From owner-freebsd-questions@FreeBSD.ORG Tue Apr 26 15:29:00 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 23C5016A4CE for ; Tue, 26 Apr 2005 15:29:00 +0000 (GMT) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id D00C643D1F for ; Tue, 26 Apr 2005 15:28:59 +0000 (GMT) (envelope-from omniBSD@speakeasy.net) Received: (qmail 30183 invoked from network); 26 Apr 2005 15:28:59 -0000 Received: from acute.anhedonia.com (HELO [10.20.30.10]) (omni@[66.93.24.213]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 26 Apr 2005 15:28:59 -0000 Message-ID: <426E5F14.70204@speakeasy.net> Date: Tue, 26 Apr 2005 10:32:36 -0500 From: Ash User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041104 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: kevintaber@discoverfinancial.com References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: smbfs in fstab 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: Tue, 26 Apr 2005 15:29:00 -0000 kevintaber@discoverfinancial.com wrote: > currently I mount my XP share via: mount_smbfs -N //a7v133/raid /storage1 > > How can I get put this in my /etc/fstab so that it doesn't prompt me > for a password upon bootup. This winshare is accessible without a > password and by anyone. I have read through seveal forums and read > man pages gallore, but I still remain unsuccessful. > > 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0 From the man page for mount_smbfs(8): [quote] ~/.nsmbrc Keeps static parameters for connections and other information. See /usr/share/examples/smbfs/dot.nsmbrc for details. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... It is possible to use fstab(5) for smbfs mounts: //guest@samba/public /smb/public smbfs rw,noauto 0 0 [/quote] From /usr/share/examples/smbfs/dot.nsmbrc: [quote] # smbfs lookups configuration files in next order: # 1. ~/.nsmbrc # 2. /etc/nsmb.conf - if this file found it will # override values with same keys from user files. [/quote] You will have to store your password in cleartext, but you seem to already be doing this in home directory since you are using the -N flag. -Ash