Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: "Dave Miles" <stack@freenet.co.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@NEEEEEEE> <20041003040342.GA25772@trixie.casa.cgf.cx> <20041003041441.GB25772@trixie.casa.cgf.cx> <20041004231101.E08D01B3F9@cgf.cx> <20041005000738.GA6013@trixie.casa.cgf.cx> <cjtvu4$nnd$1@sea.gmane.org> <4162A034.253DACBF@dessent.net>
X-Complaints-To: usenet@sea.gmane.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@dessent.net> wrote in message news:4162A034.253DACBF@dessent.net...
> Dave Miles wrote:
>
> >   Administrator@stack01 /cygdrive/c
> >   $ cp cyg.out cyg.out.0
> >   cp: cannot stat `cyg.out': No such file or directory
>
> >   Administrator@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/

