"Brian Dessent" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dave Miles wrote: > > > [EMAIL PROTECTED] /cygdrive/c > > $ cp cyg.out cyg.out.0 > > cp: cannot stat `cyg.out': No such file or directory > > > [EMAIL PROTECTED] /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/