Mail Archives: cygwin/2002/10/13/19:18:31
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 -