From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 12:07:32 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 AF5F916A4CE for ; Mon, 29 Dec 2003 12:07:32 -0800 (PST) Received: from main.onix.ro (main.onix.ro [194.102.104.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6138C43D45 for ; Mon, 29 Dec 2003 12:07:30 -0800 (PST) (envelope-from mari@onix.ro) Received: from lappytop (bella.valcea.net [80.96.131.38]) by main.onix.ro (8.11.6/8.11.6) with SMTP id hBTKBL502040; Mon, 29 Dec 2003 22:11:21 +0200 Message-ID: <009c01c3ce47$57318990$26836050@onix.ro> From: "Marian" To: "Joachim Dagerot" , "paul beard" References: <200312291931.hBTJV7402283@thunder.trej.net> Date: Mon, 29 Dec 2003 22:07:09 +0200 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.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 X-RAVMilter-Version: 8.4.2(snapshot 20021217) (main) cc: freebsd-questions@freebsd.org Subject: Re: How can I automatically mount a windows-xp share from a freeBSDbox 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 20:07:32 -0000 Hi, On my 5.1 system the example file its in /usr/share/examples/smbfs/dot.nsmbrc You need to create your own /root/.snmbrc and add the authentication details there. My .nsmbrc file looks like this and it works without asking for password: [NTSERVER:ADMINISTRATOR] # use persistent password cache for user 'administrator' password=myplaintextpassword And then when I issue the following command as root it doesnt ask for a password mount_smbfs -I 192.168.1.2 //administrator@ntserver/docs /mnt Good luck, Marian ----- Original Message ----- From: "Joachim Dagerot" To: "paul beard" Cc: Sent: Monday, December 29, 2003 9:31 PM Subject: Re: How can I automatically mount a windows-xp share from a freeBSDbox using windows usernameandpassword? > ------------------- > | > | 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. > _______________________________________________ > 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"