This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chmod Permission Error with Non-Windows Paths


On 02/26/2010 01:38 PM, Holmberg, Eric wrote:
I'm seeing an "Permission denied" failure when using chmod on a mapped network drive. The problem doesn't occur on the local drive and if I use a Windows-style backslash in the name, it works?!

CYGWIN_NT-5.1 EHOLMBER-XP 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin

$ echo $CYGWIN
nontsec

Here's your problem.


<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>

eholmber@EHOLMBER-XP /cygdrive/b
$ touch test.txt

$ ls -l test.txt
-rwx------+ 1 eholmber Domain Users 0 2010-02-26 11:16 test.txt

$ ls -l .\\test.txt
-rw-r--r-- 1 eholmber Domain Users 0 2010-02-26 11:16 .\test.txt

$ chmod +w test.txt
chmod: changing permissions of `test.txt': Permission denied

$ chmod +w .\\test.txt

$ ls -l .\\test.txt
-rw-r--r-- 1 eholmber Domain Users 0 2010-02-26 11:16 .\test.txt


Any help is greatly appreciated!

We very much prefer to see cygcheck output unedited and *attached*, not appended.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]