From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104679 invoked by alias); 25 May 2016 00:58:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 104670 invoked by uid 89); 25 May 2016 00:58:51 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 25 May 2016 00:58:40 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A27F37822A for ; Wed, 25 May 2016 00:58:39 +0000 (UTC) Received: from [10.3.116.141] (ovpn-116-141.phx2.redhat.com [10.3.116.141]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u4P0wdKV026108 for ; Tue, 24 May 2016 20:58:39 -0400 Subject: Re: chown --recursive [OWNER][:[GROUP]] ... doesn't work To: cygwin@cygwin.com References: <20130608185039.GB9607@calimero.vinschen.de> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <5744F8BE.5090502@redhat.com> Date: Wed, 25 May 2016 08:44:00 -0000 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> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kKRjGfplKgFmpGPUeGDkeNrEoJ4pE9il3" X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00301.txt.bz2 --kKRjGfplKgFmpGPUeGDkeNrEoJ4pE9il3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 767 On 06/08/2013 12:50 PM, Corinna Vinschen wrote: > On Jun 8 17:47, Vasiliy wrote: >> chown --recursive *.* 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" Content-length: 604 -----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--