delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; q=dns; s=default; b=xxen | |
14eze5VEh3rptONTLkZEkVzP7ouyW+3V7gGbKl6M5h6akjLC8/JARmG6i+Ve+sfT | |
HQtAkA93mjjNqsfsaJQUbxRFgqKhZXUxHTZaPtS6ITA2adFl3YRrTM5DZALktoiR | |
SKdWh6FohwwoGkOorHBE2AsHCHNXUKFiZr6E854= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; s=default; bh=cqt2lYhrkl | |
vx2XhL3TgWhPGCenE=; b=rlzkdFR80b9RmLebc5l5amJxKCe6elFGIF/uP7PDWF | |
kdex8HJoBmSPyyaTt2tHReX21oGi/4Kfdyvo5Bt3AZhL3xAov/IlxeKvaWNG9xXo | |
/jGm8FYe4M/Suuu79QzxqTuv/lz69U2ZK8f446Zzb5ZQy2iEu7wyzA1+93JT6L7E | |
8= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=umm, chown, GROUP |
X-HELO: | mx1.redhat.com |
Subject: | Re: chown --recursive [OWNER][:[GROUP]] ... doesn't work |
To: | cygwin AT cygwin DOT com |
References: | <CAHYyVz4_HMTHB4m2r52Dio8q-MnUHjZB2xrsAT0sUOi7iOC0sg AT mail DOT gmail DOT com> <20130608185039 DOT GB9607 AT calimero DOT vinschen DOT de> |
From: | Eric Blake <eblake AT redhat DOT com> |
Openpgp: | url=http://people.redhat.com/eblake/eblake.gpg |
Message-ID: | <5744F8BE.5090502@redhat.com> |
Date: | Tue, 24 May 2016 18:58:38 -0600 |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <20130608185039.GB9607@calimero.vinschen.de> |
X-IsSubscribed: | yes |
--kKRjGfplKgFmpGPUeGDkeNrEoJ4pE9il3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/08/2013 12:50 PM, Corinna Vinschen wrote: > On Jun 8 17:47, Vasiliy wrote: >> chown --recursive <owner> *.* doesn't change ownership for all files, >=20 > Wrong pattern. *.* doesn't match files without dot. Try >=20 > chmod -R * .* Umm, that changes .. and its children, too, which is probably not what you want. That, and long command lines can be problematic if the glob expands to too much, you might have issues if there are no matches the glob, and you have problems if any files begin with '-'. Better is: chmod -R owner . and let chmod do the recursion over all files in '.' itself without having to worry about how to glob all of them. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --kKRjGfplKgFmpGPUeGDkeNrEoJ4pE9il3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXRPi/AAoJEKeha0olJ0Nqm1cIAJJwrrD+abk89pxUfl44g70L gxzLdyM4vOGGwiNr2uK4gFttcmwzSEV8BH0dld5Dke4DbYGZutGJqV423D5sfvdf BlzU/JswEECunlTCHdST8GxTwKfqifSztqBYEx3NT29Je+/Rylb313F5QhU1kBOm 4CPK8eRKGoRVjf4UIWgVqRJ8V2m7f8hpm8OJUuKocYhy4TmgtEw6jJ2/AIGpLArg XjKr1hQKkQ+EnQAdPjAUA2OmLKmDFFsR8hvglb6C42CWtro5SqOF4+b7laUMwOAk ZHK4zRSIPVPZVK9VFezJJaF+I0nT9ncEkwOQePlrqJdt2jhe6SaBnmeXApQzxBI= =h6uS -----END PGP SIGNATURE----- --kKRjGfplKgFmpGPUeGDkeNrEoJ4pE9il3--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |