X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4D5ABFAD.4080505@redhat.com> Date: Tue, 15 Feb 2011 11:02:21 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Newbie confused about chmod References: <30931008 DOT post AT talk DOT nabble DOT com> <30932818 DOT post AT talk DOT nabble DOT com> In-Reply-To: <30932818.post@talk.nabble.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFE440B0AC8780C0A4512FEF1" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigFE440B0AC8780C0A4512FEF1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/15/2011 09:52 AM, hardya wrote: >=20 > Andrew Hardy AT ANDREWHARDY ~/mywsn/LSU-SensorSimulator/samples > $ ls -l Simulation > -rw-r--r-- 1 Andrew Hardy Administrators 238835 Oct 28 2005 Simulation >=20 > Andrew Hardy AT ANDREWHARDY ~/mywsn/LSU-SensorSimulator/samples > $ chmod -v 666 Simulation > mode of `Simulation' changed to 0666 (rw-rw-rw-) >=20 > Andrew Hardy AT ANDREWHARDY ~/mywsn/LSU-SensorSimulator/samples > $ ls -l Simulation > -rw-r--r-- 1 Andrew Hardy Administrators 238835 Oct 28 2005 Simulation Is this on a FAT or remote drive, perhaps? FAT doesn't have permissions, therefore cygwin fakes those permissions, and fakes chmod() as success rather than an error, when it's really just a no-op on losing file systems. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigFE440B0AC8780C0A4512FEF1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNWr+tAAoJEKeha0olJ0NqLPsH/29NWCsRAW09mg3NNQhprQIj HX7+cJKVfNqoCzkesBEe063cbuUtV7XNC4TRLImvF8+EA+bFfiipXAblwInvJy1E 5/IesOvW0LTWdq3L1w2aKMr5Y+sKqkShXOl8s56DCRgtfNCe1ySSM5yhtibSZe39 xpvvSrhhZ3ZwZ2Urj0c3Pt+meDohabVBwvwqKmHEKxa8z0oRBRYnyKm1BfUX9g+W 1utR1u93iOtFwql0kAb6pbVaUqNHME7uZP5lS9opskiU33b4m0o31azi0tBw4euw 7XC4ktlib7psoWOr9fJYsORqhr/pqbrxh3bXTfx5AWflZnD+S3iyEEmI2ctHuzo= =O1qj -----END PGP SIGNATURE----- --------------enigFE440B0AC8780C0A4512FEF1--