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


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

Thanks for the pointer - I added the following to /etc/fstab and everything is working as expected again:

none /cygdrive cygdrive text,posix=0,noacl 0 0

>
>> 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.
>
Will do next time.

Thanks,
Eric



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