X-Spam-Check-By: sourceware.org Date: Fri, 30 Jun 2006 11:54:51 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Access to Network Drive under ssh Message-ID: <20060630095451.GQ18873@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <200606300846 DOT k5U8kpg8007217 AT sd DOT skydive1 DOT com> <20060630093831 DOT GM18873 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060630093831.GM18873@calimero.vinschen.de> User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 30 11:38, Corinna Vinschen wrote: > On Jun 29 22:46, Richard Foulk wrote: > > I've written my own mount command for Cygwin in Perl. One thing to > > be aware of is that drive letters aren't necessary with Cygwin. > > > > You can't say: `cd \\xyz\c$' with Windows cmd.exe. > > > > You *can* say things like: `cd //xyz/c\$' in Cygwin. This cleans up > > many things. If you have the right permissions `net use' isn't necessary! > > > > A wrapper for `net use' in Perl is pretty easy to do, including all > > the password stuff. > > > > Those drive letters just get in the way. Don't use them. > > To add another data point: > > When running under a public key ssh session, you're running in the login > session of the SYSTEM user. Also, since you used pubkey instead of > password login, you don't have the credentials for network access. This > has two results: Three, it were three results: > - You must use the net command to connect to non-public shares. > - You must use username and password in the net use command. > - You can't use drive letters. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/