This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: chmod Permission Error with Non-Windows Paths
- From: "Holmberg, Eric" <eholmber at qualcomm dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 1 Mar 2010 15:04:57 -0800
- Subject: RE: chmod Permission Error with Non-Windows Paths
- References: <F8F0141514246148920A91CB18888D3D172930A8FB@NASANEXMB09.na.qualcomm.com> <4B881CC8.60704@cygwin.com>
>> 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