delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/21/11:27:52

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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 21 Apr 2003 11:27:41 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: fergus AT bonhard DOT uklinux DOT net
cc: cygwin AT cygwin DOT com
Subject: Re: Cygwin, XP, and copying files and folders from a CD
In-Reply-To: <000b01c30819$a7863160$6fc82486@medschool.dundee.ac.uk>
Message-ID: <Pine.GSO.4.44.0304211124030.19398-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 21 Apr 2003 fergus AT bonhard DOT uklinux DOT net wrote:

> Cygwin 1.3.22; Windows XP Pro :
> Permissions, attributes and writeability
>
> I copied files and folders to a Cygwin directory from a CD using commands of
> the style
>
>     cp -vr /cygdrive/e/{whatever1} /{whatever2}
>
> from within Cygwin. Attempts then to create executables within the directory
> structure /{whatever2} failed, due (I think) to the folder permissions which
> were of the form dr-xr-xr-x rather than drwxr-xr-x. In Windows language, the
> directories copied from the CD were marked +R. (So were the copied files,
> though this in itself would not frustrate the attempts to create the
> executables.)
>
> Question 1 : Presuming this to be a common enough problem in XP, is there a
> further switch that can be attached to a cp instruction to strip the +R
> attribute from files and directories copied from a CD? Or, instead of cp,
> can anybody with experience recommend using the command install?
>
> Question 2 : I decided to delete Cygwin from the machine entirely by (a)
> umount -A, (b) deleting all mention of *cyg* from the registry (c) finally
> deleting c:\Cygwin and below. Part (c) failed! Even though all files and
> folder attributes are -R-A-S-H, in the Windows sense, something is stopping
> me getting rid of all of them (access denied). (Many files and folders have
> successfully been deleted: I am talking about a stubborn residue.) Any ideas
> what?
>
> Comment: I had just about understood the mapping between Cygwin permissions
> and Windows attributes in W98, and was putting up with the ludicrous
> Microsoft-imposed limitations on filenames. Then I "upgraded" to XP, and,
> omigod, how bitterly I regret it. I seem to have added complication and
> complexity with no matching advantage gained in utility. Either in the
> Windows sense, or in Cygwin. Many (if not most?) of us are single users on
> single-user machines. What's all this about Administrators and User Profiles
> and all that sort of thing, then? Over Goodness knows how many years,
> Microsoft would surely have been better employed dreaming up a proper
> 52-letter filesystem. I applaud you developer-guys, I really do, for taking
> on this monstrous and grotesque family of Operating Systems and, apparently,
> winning.
>
> Fergus

Fergus,

For your question 1: is ntsec on?  Did you try giving the "-p" option to
"cp"?

For your question 2: you probably have a running Cygwin process somewhere
that prevents files from being deleted.  If you still have "ps" around,
run "ps -ef" and see if anything comes up.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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