From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 11:39:48 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 4430316A4CE for ; Mon, 29 Dec 2003 11:39:48 -0800 (PST) Received: from firecrest.mail.pas.earthlink.net (firecrest.mail.pas.earthlink.net [207.217.121.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 316E443D58 for ; Mon, 29 Dec 2003 11:39:46 -0800 (PST) (envelope-from algould@datawok.com) Received: from 22-15.lctv-b4.cablelynx.com ([24.204.22.15] helo=yoda.datawok.com) by firecrest.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1Ab3Er-0004o8-00; Mon, 29 Dec 2003 11:39:42 -0800 From: "Andrew L. Gould" To: Joachim Dagerot , paul beard Date: Mon, 29 Dec 2003 13:40:27 -0600 User-Agent: KMail/1.5.4 References: <200312291931.hBTJV7402283@thunder.trej.net> In-Reply-To: <200312291931.hBTJV7402283@thunder.trej.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312291340.27749.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b5cb45d78092096f45ad687ead6f539de350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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:39:48 -0000 On Monday 29 December 2003 01:31 pm, Joachim Dagerot wrote: > ------------------- > > | 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. You're missing the -N option. See man mount_smbfs. Andrew Gould