delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/30/08:13:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A4A0463.6000704@gmail.com>
Date: Tue, 30 Jun 2009 13:26:11 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ot] Permissions issue
References: <2AA6F1EC75BE4E22B5BB950B3B6F0EEF AT phoenix> <4A49ECFB DOT 9020907 AT gmail DOT com> <5A322D31158D4434A29224C64A2BE4EB AT phoenix>
In-Reply-To: <5A322D31158D4434A29224C64A2BE4EB@phoenix>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Jason Pyeron wrote:

>> Jason Pyeron wrote:
>>> On the local disk, C:\Documents and Settings\All 
>>> Users\workspace\nitams\x.txt
>>>
>>> In wordpad I choose save and I get access denied.
>>   Please report bugs in wordpad to Microsoft, not us.  (Well, 
>> I guess you did tag it OT!)
> 
> It is many applications, including Sun's java, wordpad, etc... Pretty much
> everything I have tried except Cygwin apps fail. Since only Cygwin apps work I
> am asking here.

  Bear in mind that files created by Cygwin apps use POSIX permission schemes:
rwx/ugo.  This is handled by setting windows access permissions on the files.
 If you chmod a file to remove 'w' perms in cygwin, you won't be able to
overwrite it in windows apps either.

>>> 22:29:45	wordpad.exe:2664	QUERY INFORMATION	
>> C:\Documents and
>>> Settings\All Users\workspace\nitams\x.txt	SUCCESS	Attributes: HA	

>>> Any ideas where to start on this?
>>   Clear the "hidden" attribute from x.txt?
> 
> Yes, that and the readonly attribute are clear.

  According to your log file above, it has the hidden and archive attributes
set.  I ran a quick test using wordpad to edit C:\autoexec.bat, which comes
with the hidden attribute on by default; wordpad reports permission denied if
you try and save the file.  If you clear the attribute, wordpad saves it ok.
Cygwin apps don't care about the DOS attributes, only the ACLs.  So I think
you need to double-check.

    cheers,
      DaveK


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019