delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/11/16:37:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: Access Denied (XP Home SP1, cygwin-1.3.15
Date: Mon, 11 Nov 2002 16:37:17 -0500
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E90B9D2@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: "Joel Rubin" <jmrubin AT ix DOT netcom DOT com>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gABLbSW18462

try:

   After creating temp.txt in Cygwin:

   $ ls -l temp.txt

The permissions of this file will depend upon your setting
of 'umask'.  For me, this yields:

   $ umask
   0022

So, my permissions are set to 'rw-r--r--'.

Because you are creating a text file, execution permission
should not be on by default.  'ex' appears to be behaving
correctly.

After 'c:\temp> copy temp.txt a.txt', try:

$ ls -l a.txt

For me, this yields permissions '---------', i.e., all "UNIX"
permissions are turned off.  When I attempt to "run" the text
file 'a.txt', notepad opens with the contents of 'a.txt' because
on my system (Win2K, running Cygwin 1.3.15-2) I have notepad
associated with .txt files.


> -----Original Message-----
> From: Joel Rubin [mailto:jmrubin AT ix DOT netcom DOT com]
> Sent: Monday, November 11, 2002 4:22 PM
> To: cygwin AT cygwin DOT com
> Subject: Access Denied (XP Home SP1, cygwin-1.3.15
> 
> 
> I have the same problem with several Cygwin programs including wget
> and unzip. The "access denied" survives a reboot.
> 
> So it seems that Cygwin is creating files with this problem. I have
> only one user with, of course, administrative rights.
> 
> 11/08/2002  11:49 AM         1,080,807 cygwin-1.3.15-2.tar.bz2
> 
> bash-2.05b$ ex temp.txt
> "temp.txt" [New File]
> Entering Ex mode.  Type "visual" to go to Normal mode.
> :a
> This is a test
> Test
> .
> :wq
> bash-2.05b$ exit
> Now back in cmd.exe:
> 
> C:\TEMP>temp.txt
> Access is denied.
> 
> C:\TEMP>copy temp.txt a.
> txt
>         1 file(s) copied.
> 
> C:\TEMP>del temp.txt
> 
> C:\TEMP>ren a.txt temp.t
> xt
> 
> C:\TEMP>temp.txt
> 
> C:\TEMP>
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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