delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/13/19:18:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Subject: weird Cygwin+CIFS issues (not symlinks...): filename contains garbage & mounting under ssh
MIME-Version: 1.0
Date: Sun, 13 Oct 2002 19:18:22 -0400
Message-ID: <7BFCE5F1EF28D64198522688F5449D5AD63A34@xchangeserver2.storigen.com>
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Scott Prive" <Scott DOT Prive AT storigen DOT com>
To: "Cygwin" <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9DNIVu09694

This question deals with weird, undeletable files under CIFS mounts, and an issue creating drive mounts under ssh. They may be related.


Problem #1 - garbage-chars in filename

Drive W: mounted using MS' "net use" command. I am operating under a remote ssh login.

I am using Cygwin on a Linux CIFS share and get "denied" message when I DO have correct permissions. This error leaves "weird" filenames in the dir.



$ echo "foo: HJHKH ())" >/cygdrive/w/bashwrite
-bash: /cygdrive/w/bashwrite: Permission denied

copies don't work either:
$ cp /cygdrive/c/expectedfile /cygdrive/w/newwrite
cp: cannot create regular file `/cygdrive/w/newwrite': Permission denied

$ ls -l /cygdrive/w
ls: /cygdrive/w/bashwrite???X: No such file or directory
ls: /cygdrive/w/newwrite????X: No such file or directory
total 1
-rwxr--r--    1 2000     1001            6 Oct 13 17:24 expectedfile

OK. I'll try it in CMD.EXE (under Cygwin)
Administrator AT QA2000TEST ~
$ cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\cygwin\home\Administrator>w:
w:

W:\>ls
ls
bashwrite???X
expectedfile
newwrite????X

W:\>echo "hello world">hello_world
echo "hello world">hello_world

W:\>dir
dir
 Volume in drive W is foo
 Volume Serial Number is 108D-0104

 Directory of W:\

10/13/2002  07:04p      <DIR>          .
09/24/2002  04:17p      <DIR>          ..
10/13/2002  05:24p                   6 expectedfile
10/13/2002  06:59p                   0 bashwrite???X
10/13/2002  07:02p                   0 newwrite????X
10/13/2002  07:04p                  15 hello_world
               4 File(s)             21 bytes
               2 Dir(s)     767,623,168 bytes free

W:\>more hello_world
more hello_world

q
?

Administrator AT QA2000TEST ~
$ 

Because I could create the file using cmd.exe, this points to my Cygwin setup... but it might be more complicated than that.

Problem #2:

Drive shares created under ssh session, do not work under graphical console of Windows 2000.

Example: 
I ssh into system as Administrator, "net use" to mount a CIFS drive. In the graphical desktop (also logged in as Administrator), the drive letter is shown but it has a red X and cannot be used.

If I use Explorer to mount a "new" drive letter to the same UNC path, that mount behaves properly.

----

This feels like a permissions issue, and I'm wondering if my earlier ssh server issues (which *seems* resolved) are the cause, or if it's a CIFS issue  I only see with Cygwin (see log above, doesn't happen in CMD.EXE)

ANY insight would be most appreciated!

-Scott

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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