From owner-freebsd-fs@FreeBSD.ORG Sun May 20 16:33:41 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 2A2AE16A469 for ; Sun, 20 May 2007 16:33:41 +0000 (UTC) (envelope-from SRS0=AAamUv=KV=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout13.yourhostingaccount.com (mailout13.yourhostingaccount.com [65.254.253.105]) by mx1.freebsd.org (Postfix) with ESMTP id EC6CD13C468 for ; Sun, 20 May 2007 16:33:40 +0000 (UTC) (envelope-from SRS0=AAamUv=KV=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan51.yourhostingaccount.com ([10.1.15.51] helo=mailscan51.yourhostingaccount.com) by mailout13.yourhostingaccount.com with esmtp (Exim) id 1HpoLj-0002a5-V8 for freebsd-fs@freebsd.org; Sun, 20 May 2007 12:33:39 -0400 Received: from authsmtp08.yourhostingaccount.com ([10.1.18.8] ident=exim) by mailscan51.yourhostingaccount.com with spamscanlookuphost (Exim) id 1HpoLj-0000ZD-P2 for freebsd-fs@freebsd.org; Sun, 20 May 2007 12:33:39 -0400 Received: from authsmtp08.yourhostingaccount.com ([10.1.18.8] helo=authsmtp08.yourhostingaccount.com) by mailscan51.yourhostingaccount.com with esmtp (Exim) id 1HpoLj-0000Z2-25; Sun, 20 May 2007 12:33:39 -0400 Received: from cpe-65-185-51-114.columbus.res.rr.com ([65.185.51.114] helo=vixen42) by authsmtp08.yourhostingaccount.com with esmtpa (Exim) id 1HpoLi-0000nc-FI; Sun, 20 May 2007 12:33:38 -0400 Date: Sun, 20 May 2007 12:36:07 -0400 From: "Zane C.B." To: Hiroharu Tamaru Message-ID: <20070520123607.4aba7f35@vixen42> In-Reply-To: References: <20070519222527.680ba5c2@vixen42> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: "Zane C.B." X-EN-OrigIP: 65.185.51.114 X-EN-OrigHost: cpe-65-185-51-114.columbus.res.rr.com 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:33:41 -0000 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. That is entirely what I am trying to get to work here.