delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | mwoehlke <mwoehlke AT tibco DOT com> |
Subject: | Re: Visibility of Samba shares after ssh login |
Date: | Tue, 23 May 2006 11:32:32 -0500 |
Lines: | 50 |
Message-ID: | <e4vdf1$jjo$1@sea.gmane.org> |
References: | <4472BE0D DOT 7020701 AT avl DOT com> <e4v9pm$3ql$1 AT sea DOT gmane DOT org> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 1.5.0.2 (X11/20060420) |
In-Reply-To: | <e4v9pm$3ql$1@sea.gmane.org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
mwoehlke wrote: > Guenter Bachler wrote: >> I started the ssh-server on the windows client in order to log-on to a >> Linux maschine >> and vice verse. On the Windows client several SAMBA shares have been >> mapped >> and correctly displayed with the 'mount' command in the cygwin shell. >> >> Now invoking an ssh login session from the Linux machine on the >> Windows client >> (under my regular Windows account), the mount command does not display >> the >> SAMBA shares anymore (beginning with drive letters k) >> >> Is there any simple procedure to remount all SAMBA shares >> automatically in the ssh session? > > Not an answer, but I have a similar problem... In fact, this is AFAICT > one of *the* most common problems (and yes I've STFW and STFML and did > not find a solution that WFM'd). So, if you figure it out, please share. > > (The annoying part is that I somehow got this to work on *one* computer, > and can't figure out how to do it again.) > > Anyway, does 'net use' on your ssh session show all the "missing" drives > as "unavailable"? Eureka! It helps to pay attention to what is actually going on on the *working* computer :-). I apparently got things working by hacking my sshd service to run '/bin/bash -c /usr/local/sbin/sshd_init' (which is a script I wrote) instead of '/usr/sbin/sshd'. My 'sshd_init' looks something like this: #!/bin/bash export PATH="/bin:/usr/bin:/usr/sbin:$PATH" export CYGWIN='tty' for drv in <network drives> do net use ${drv}: /delete &>/dev/null done net use <drive>: <network-path> <...> umount <...> &>/dev/null # unmount anything that needs to be mounted mount -f <...> <...> /usr/sbin/sshd -D -- Matthew Interix, Sphinterix. Cygwin apps don't crash. :-) -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |