X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Danilo Turina Subject: Re: RES: Problem accessing samba shares via ssh in XP Date: Thu, 24 Nov 2005 10:00:37 +0100 Lines: 147 Message-ID: <43858135.4030400@alcatel.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) In-Reply-To: X-IsSubscribed: yes 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 The "problem" is that logging with ssh with your username you are not really logged as your user (that has the network drives mapped) but, instead, as SYSTEM (that has no network drive map (also because it is not a network user)). This also applies to telnet and to all the other mechanisms that, through Cygwin, allow you to log to your machine. A workaround is to manually map the network drives manually (using NET USE) after you log with ssh. Ciao, Danilo Felipe Franciosi wrote: > Some people replied directly to me reporting the same problem. > > Does anyone have a solution??? > > []s > > -- > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > Felipe Franciosi +55-51-91230557 > CPAD/HP/PUCRS – Centro de Pesquisa em Alto Desempenho > http://www.cpad.pucrs.br/ ozzy AT cpad DOT pucrs DOT br > Porto Alegre, RS - Brazil > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > > -----Mensagem original----- > De: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] Em nome de > Felipe Franciosi > Enviada em: segunda-feira, 21 de novembro de 2005 20:41 > Para: cygwin AT cygwin DOT com > Assunto: Problem accessing samba shares via ssh in XP > > Hello All, > > I'm not sure if this has already been discussed here, but I couldn't find > anything related using google. > > I have a WinXP box running cygwin and SSHD. In this XP, I have mounted some > shares exported by a linux box trough smb. > > When I log in locally (e.g. run xterm -l) I see the shares in /cygdrive. But > I when I log in via ssh, they are simply not there... > > See: > > ozzy AT Araucaria[~] > $ cd /cygdrive > > ozzy AT Araucaria[/cygdrive] > $ ls > c/ d/ x/ y/ z/ > > ozzy AT Araucaria[/cygdrive] > $ ssh localhost > ozzy AT localhost's password: > Last login: Mon Nov 21 19:48:08 2005 from localhost > Fanfare!!! > You are successfully logged in to this server!!! > > ozzy AT Araucaria[~] > $ cd /cygdrive > > ozzy AT Araucaria[/cygdrive] > $ ls > c/ d/ > > ozzy AT Araucaria[/cygdrive] > $ > > > Any ideas on what's going on ?? > > Thanks > > p.s. Here is some weird debugging: > > ozzy AT Araucaria[~] > $ net use > Novas conexões serão lembradas. > > > Status Local Remoto Rede > > ---------------------------------------------------------------------------- > --- > OK X: \\jacaranda\ozzy Rede Microsoft Windows > Desconectado Y: \\jacaranda\public Rede Microsoft Windows > OK Z: \\arrakis\franciosi Rede Microsoft Windows > > Comando concluído com êxito. > > > ozzy AT Araucaria[~] > $ ssh localhost > ozzy AT localhost's password: > Last login: Mon Nov 21 20:36:15 2005 from > localhost > Fanfare!!! > You are successfully logged in to this server!!! > > ozzy AT Araucaria[~] > $ net use > Novas conexões serão lembradas. > > > Status Local Remoto Rede > > ---------------------------------------------------------------------------- > --- > Não disponív X: \\jacaranda\ozzy Rede Microsoft Windows > NÆo dispon¡v Y: \\jacaranda\public Rede Microsoft Windows > NÆo dispon¡v Z: \\arrakis\franciosi Rede Microsoft Windows > > Comando concluído com êxito. > > > ozzy AT Araucaria[~] > $ > > Disregarding the codepages issue, here is some important translations: > "NÆo dispon¡v" is actually "Não disponível", which means "Unavailable". > "Desconectado" naturally stands for "Disconnected". > > > -- > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > Felipe Franciosi +55-51-91230557 > CPAD/HP/PUCRS – Centro de Pesquisa em Alto Desempenho > http://www.cpad.pucrs.br/ ozzy AT cpad DOT pucrs DOT br > Porto Alegre, RS - Brazil > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > > > > -- > 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/ > > > -- 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/