X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47C718A8.8080505@cygwin.com> Date: Thu, 28 Feb 2008 15:25:12 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Access to Network Drive under ssh References: <4A27D05E36DE7E47B96BCF7DD8F3FD7101307B3B6D AT NASANEXMB04 DOT na DOT qualcomm DOT com> In-Reply-To: <4A27D05E36DE7E47B96BCF7DD8F3FD7101307B3B6D@NASANEXMB04.na.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Dang, Robin wrote: > http://cygwin.com/ml/cygwin/2006-06/msg00820.html > > I am having the same problems as in the discussion and would appreciate > any help to resolve it. After I log into a ssh session, the drives are not > automatically mapped and typing 'net use' gives me unavailable. I can map > them manually, but I need them to be mapped automatically to setup the > environment properly for my scripts. > > "Anyway, the way I generally get things... well, closer to working, is to > create a service that calls 'bash -c ', and have the > script issue a bunch of 'net use ' commands and then exec sshd. > That way you don't have to worry about connections being remembered, because > they will always be created for you when sshd starts up." > > In the post, there is a workaround for the problem, but I cannot write > the sshd-init-script and create the service to run it, so it works. Would anyone > provide anymore detail or instructions? I'd recommend: > Problem reports: http://cygwin.com/problems.html The thread you reference isn't doing anything more to remap the drives than you are manually. It's just automating the process. If that's all you need , then just put the "net use " in your .bash_login or other convenient spot that gets run each time you login. The process described above is just a more complicated way of getting here, albeit with certain advantages (it won't remap your drives every time you invoke bash -l). -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/