From owner-freebsd-fs@FreeBSD.ORG Sun May 20 16:59:19 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E0CC16A421 for ; Sun, 20 May 2007 16:59:19 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mail1.ecc.u-tokyo.ac.jp (mail1.ecc.u-tokyo.ac.jp [133.11.50.203]) by mx1.freebsd.org (Postfix) with ESMTP id 16C6013C45E for ; Sun, 20 May 2007 16:59:19 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from spam004.ecc.u-tokyo.ac.jp (spam004.ecc.u-tokyo.ac.jp [133.11.50.197]) by mail1.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 0DD982A2AEB for ; Mon, 21 May 2007 01:59:18 +0900 (JST) Received: from gin.myn.rcast.u-tokyo.ac.jp (157.82.72.158 [157.82.72.158]) by spam004.ecc.u-tokyo.ac.jp (SpamBlock.pst 3.4.97) with ESMTP id for ; Mon, 21 May 2007 01:58:58 +0900 Date: Mon, 21 May 2007 01:58:58 +0900 Message-ID: From: Hiroharu Tamaru To: "Zane C.B." In-Reply-To: <20070520123607.4aba7f35@vixen42> References: <20070519222527.680ba5c2@vixen42> <20070520123607.4aba7f35@vixen42> User-Agent: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-IP: 157.82.72.158 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp Cc: freebsd-fs@freebsd.org Subject: Re: mount_smbfs and non-interactively passing a password to it X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 16:59:19 -0000 At Sun, 20 May 2007 12:36:07 -0400, Zane C.B. wrote: > > On Mon, 21 May 2007 01:19:58 +0900 > Hiroharu Tamaru wrote: > > > > > At Sat, 19 May 2007 22:25:27 -0400, Zane C.B. wrote: > > > Is passing a password to mount_smbfs non-interactively possible? I > > > know it can't accept it on STDIN by piping it into it. > > > > mount_smbfs(8) : > > -N Do not ask for a password. At run time, mount_smbfs > > reads the ~/.nsmbrc file for additional configuration parameters > > and a password. If no password is found, mount_smbfs prompts for > > it. > > > > /usr/share/examples/smbfs/dot.nsmbrc : > > [FSERVER:JOE] > > # use persistent password cache for user 'joe' > > password=$$1767877DF > > > > I'm using -N for shares w/o passwords; I've never tried .nsmbrc > > password myself > > This is not useful if ~/ is not mounted and you are planning of > mounting it using mount_smbfs. You never said that. Who's mounting ~user in that case? root?