delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/16/07:03:23

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Phillip Lord <phillip DOT lord AT newcastle DOT ac DOT uk>
Date: Thu, 16 Nov 2006 12:02:55 +0000
Message-ID: <uirhfmweo.fsf@newcastle.ac.uk>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)
MIME-Version: 1.0
Received-SPF: pass (cheviot3.ncl.ac.uk: 128.240.150.78 is authenticated by a trusted mechanism)
X-Newcastle-MailScanner-Information: Please contact Postmaster AT newcastle DOT ac DOT uk for more information
X-Newcastle-MailScanner: Found to be clean
X-Newcastle-MailScanner-MCPCheck: MCP-Clean, MCP-Checker (score=0, required 1)
X-Newcastle-MailScanner-From: phillip DOT lord AT newcastle DOT ac DOT uk
Subject: UNC file names, symlinks and ssh
X-NCL-Spam-Status: No
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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




I am getting some confusing behaviour from cygwin that I don't
understand. Essentially, UNC files names appear to be behaving very
differently between the console and when sshing into the machine. 

I have the following set up (--> means a symlink)


~/mnt/webpages -->   //homepages/with/unc/name
~/documents/website/published --> ~/mnt/webpages


~/documents/website/some.html


Now, if in ~/documents/website, I do

cp some.html published 

it all works. My document gets published to the UNC location as I
expect. 

However, if I ssh into my desktop machine, things no longer work
properly. If in ~/documents/website I try

cd published

I get "Permission denied". If I do

cp some.html published

the symlink gets replaced with a file "published" having the contents
of some.html. Also

cd ~/mnt/webpages

gives permission denied. 


This problem seems highly specific. I get this only when sshing into
my desktop machine. Last night I had one shell open on the local
machine, running an ssh session into the remote machine, with another
shell inside a VNC desktop session running directly on the remote
machine. The ssh shell seemed unable to cope with the UNC names. 

I'm very confused. I always assumed a shell was a shell whether it was
writing to a local terminal or through an ssh session. 

Can anyone help? 

Phil

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019