From owner-freebsd-questions@FreeBSD.ORG Tue Apr 26 17:40:31 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 11EB616A4CE for ; Tue, 26 Apr 2005 17:40:31 +0000 (GMT) Received: from smtpgate.tsgincorporated.com (ns1.tsgincorporated.com [67.66.242.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB2CA43D1F for ; Tue, 26 Apr 2005 17:40:30 +0000 (GMT) (envelope-from micheal@tsgincorporated.com) Received: from localhost (localhost.tsgincorporated.com [127.0.0.1]) by smtpgate.tsgincorporated.com (Postfix) with ESMTP id 499CA3D1E7C; Tue, 26 Apr 2005 12:40:30 -0500 (CDT) Received: from smtpgate.tsgincorporated.com ([127.0.0.1])port 10024) with ESMTP id 29384-09; Tue, 26 Apr 2005 12:40:27 -0500 (CDT) Received: from mail.tsgincorporated.com (lanmail.tsgincorporated.com [67.66.242.29]) by smtpgate.tsgincorporated.com (Postfix) with ESMTP id 979B33D1E79; Tue, 26 Apr 2005 12:40:27 -0500 (CDT) Received: from micheal (micheal.tsgincorporated.com [67.66.242.77]) by mail.tsgincorporated.com (Postfix) with SMTP id E1C9D9528DB; Tue, 26 Apr 2005 12:40:31 -0500 (CDT) Message-ID: <0dcc01c54a87$62324830$4df24243@tsgincorporated.com> From: "Micheal Patterson" To: References: <426E5F14.70204@speakeasy.net> Date: Tue, 26 Apr 2005 12:42:51 -0500 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 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: amavisd-new at tsgincorporated.com 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 17:40:31 -0000 . ----- Original Message ----- From: "Ash" To: Cc: Sent: Tuesday, April 26, 2005 10:32 AM Subject: Re: smbfs in fstab > 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 > _______________________________________________ > 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" > If you want this to mount from the fstab at system boot, remove the noauto flag and place an -N in the string: #//user@server/share_name /mount_point smbfs rw,-N That will read the password information from the users .nsmbrc file as Ash stated, or, if you want it system wide, use the /etc/nsmb.conf file instead. -- Micheal Patterson Senior Communications Systems Engineer 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message