delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/05/10:04:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: "Dave Miles" <stack AT freenet DOT co DOT uk>
Subject: Re: Weird bug with cp -f
Date: Tue, 5 Oct 2004 15:03:33 +0100
Lines: 66
Message-ID: <cju9j6$jv2$1@sea.gmane.org>
References: <000601c4a90d$0d18bad0$210110ac AT NEEEEEEE> <20041003040342 DOT GA25772 AT trixie DOT casa DOT cgf DOT cx> <20041003041441 DOT GB25772 AT trixie DOT casa DOT cgf DOT cx> <20041004231101 DOT E08D01B3F9 AT cgf DOT cx> <20041005000738 DOT GA6013 AT trixie DOT casa DOT cgf DOT cx> <cjtvu4$nnd$1 AT sea DOT gmane DOT org> <4162A034 DOT 253DACBF AT dessent DOT net>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: host81-136-216-71.in-addr.btopenworld.com
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-IsSubscribed: yes

"Brian Dessent" <brian AT dessent DOT net> wrote in message news:4162A034 DOT 253DACBF AT dessent DOT net...
> Dave Miles wrote:
>
> >   Administrator AT stack01 /cygdrive/c
> >   $ cp cyg.out cyg.out.0
> >   cp: cannot stat `cyg.out': No such file or directory
>
> >   Administrator AT stack01 /cygdrive/c
> >   $ cp cyg.out cyg.out.0
> >   cp: writing `cyg.out.0': Invalid request code
>
> My guess is that your permissions on the C: root include some weird
> ACLs.  Post the output of "xcacls c:/" and for any other directory or
> location that the problem occurs, and for a location where it works
> fine.
>
> Brian
>

Directory where it works fine:

  C:\>xcacls c:/temp
  c:\TEMP BUILTIN\Administrators:(OI)(CI)F
          Everyone:(OI)(CI)C
          CREATOR OWNER:(OI)(CI)F
          NT AUTHORITY\SYSTEM:(OI)(CI)F

Directory where it doesn't:

  C:\>xcacls c:/
  c:\ BUILTIN\Administrators:(OI)(CI)F
      Everyone:(OI)(CI)C
      CREATOR OWNER:(OI)(CI)F
      NT AUTHORITY\SYSTEM:(OI)(CI)F

Since re-starting the system and repeating the copy on drive O: (the
newly created NTFS partition that 'cp' worked in) the "magically created
directory" now appears when using 'cp'. FAT and FAT32 drives still seem
OK with 'cp'.

Xcacls for all drives:

  C:\>xcacls c: && xcacls d: && xcacls g: && xcacls j: && xcacls k: && xcacls l: &
  & xcacls m: && xcacls n: && xcacls o:
  C:\ BUILTIN\Administrators:(OI)(CI)F
      Everyone:(OI)(CI)C
      CREATOR OWNER:(OI)(CI)F
      NT AUTHORITY\SYSTEM:(OI)(CI)F

  D:\ Everyone:(OI)(CI)F

  G:\ Everyone:(OI)(CI)F

  J:\ Everyone:(OI)(CI)F

  K:\ Everyone:(OI)(CI)F

  L:\ Everyone:(OI)(CI)F

  M:\ No permissions are set. All user have full control.
  N:\ No permissions are set. All user have full control.
  O:\ Everyone:(OI)(CI)F





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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