www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/30/14:51:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
From: "Jason Pyeron" <jpyeron AT pdinc DOT us>
To: <cygwin AT cygwin DOT com>
References: <2AA6F1EC75BE4E22B5BB950B3B6F0EEF AT phoenix> <4A49ECFB DOT 9020907 AT gmail DOT com> <5A322D31158D4434A29224C64A2BE4EB AT phoenix> <4A4A0463 DOT 6000704 AT gmail DOT com>
Subject: RE: [ot] Permissions issue
Date: Tue, 30 Jun 2009 14:52:50 -0400
Message-ID: <E4B077ABD60447E684F2696CE49DDE54@phoenix>
MIME-Version: 1.0
In-Reply-To: <4A4A0463.6000704@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

 

> -----Original Message-----
> From: Dave Korn
> Sent: Tuesday, June 30, 2009 8:26
> 
> 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.
> 

Upon double checking, (I needed to fix the issue and I did not preserve tings so
well in the panic) there are no current hidden attributes set, but windows apps
now can save to the file.


Good to know.



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.


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