From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 11:31:21 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 F1EE316A4CE for ; Mon, 29 Dec 2003 11:31:20 -0800 (PST) Received: from thunder.trej.net (as3-3-6.orby.s.bonet.se [217.215.33.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA4FA43D48 for ; Mon, 29 Dec 2003 11:31:18 -0800 (PST) (envelope-from freebsd@dagerot.nu) Received: from mailgw.trej.net (localhost [127.0.0.1])hBTJV7402283; Mon, 29 Dec 2003 20:31:07 +0100 Message-Id: <200312291931.hBTJV7402283@thunder.trej.net> Date: Mon, 29 Dec 2003 20:31:06 +0100 Content-Transfer-Encoding: 8bit From: Joachim Dagerot Content-Type: text/plain; charset=us-ascii In-Reply-To: <19E896F5-3A32-11D8-98AE-000A95BBCCF8@mac.com> MIME-Version: 1.0 To: paul beard User-Agent: IMHO/0.98.3t (Webmail for Roxen) 3j-MailScanner-Information: Please contact the ISP for more information 3j-MailScanner: Found to be clean cc: freebsd-questions@freebsd.org Subject: Re: How can I automatically mount a windows-xp share from a freeBSD box using windows usernameandpassword? 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, 29 Dec 2003 19:31:21 -0000 ------------------- | | On Dec 29, 2003, at 10:58 AM, Joachim Dagerot wrote: | | > I know this question has been touched earlier this year, but no answer | > came up at that point. So basically, has anyone been able to mount a | > windows share from a script in freeBSD? If yes, how did you do? | > | | I have done it in Mac OS X so the procedure should be similar: you need | to use .nmbrc to store your authentication details, but it should "just | work." | | man nsmbrc for more specifics. My system keeps telling me that theres no such entry. However I found an example under /usr/share/examples/smbfs nad copied/renamed it to /root/ I edited the file and changed all values to reflect my system. Then I tried mount_smbfs //username@servername/sharename /mountpoint and still it asks for a password. Any advice is welcome.