From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miklos Szeredi Subject: Re: [PATCH] private mounts Date: Sun, 24 Apr 2005 23:15:35 +0200 Message-ID: References: <20050424201820.GA28428@infradead.org> <20050424205422.GK13052@parcelfarce.linux.theplanet.co.uk> <20050424210616.GM13052@parcelfarce.linux.theplanet.co.uk> Cc: hch@infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@osdl.org Return-path: Received: from rev.193.226.232.93.euroweb.hu ([193.226.232.93]:48281 "EHLO dorka.pomaz.szeredi.hu") by vger.kernel.org with ESMTP id S262431AbVDXVQJ (ORCPT ); Sun, 24 Apr 2005 17:16:09 -0400 To: viro@parcelfarce.linux.theplanet.co.uk In-reply-to: <20050424210616.GM13052@parcelfarce.linux.theplanet.co.uk> (message from Al Viro on Sun, 24 Apr 2005 22:06:16 +0100) Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org > > > I believe the point is: > > > > > > 1. Person is logged from client Y to server X, and mounts something on > > > $HOME/mnt/private (that's on X). > > > > > > 2. On client Y, person does "scp X:mnt/private/secrets.txt ." > > > and wants it to work. > > > > > > The second operation is a separate login to the first. > > > > Solution? > > ... is the same as for the same question with "set of mounts" replaced > with "environment variables". No. You can't set "mount environment" in scp. Otherwise your analogy is nice, but misses a few points. The usage of mounts that we are talking about is much more dynamic than usage of environment variables. You wouldn't want to set an environment variable in all your shells just to access a remote system though sshfs for example. It _is_ possible (except the ftp, scp case) but _very_ inconvenient. I ask again, what solution would you suggest? Thanks, Miklos