X-Spam-Check-By: sourceware.org
Message-ID: <442428E8.9040703@byu.net>
Date: Fri, 24 Mar 2006 10:14:16 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin@cygwin.com, metaperl.cygwin@gmail.com
Subject: Re: chmod not working after setting ntsec in CYGWIN environment variable
References: <82a397f60603240905t5eb6a726o83da83b60200907e@mail.gmail.com>
In-Reply-To: <82a397f60603240905t5eb6a726o83da83b60200907e@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Terrence Brannon on 3/24/2006 10:05 AM:
> Why won't chmod work even after setting CYGWIN properly?
> 
> terrence@perl2 ~/.ssh
> $ ls -l
> total 9
> -rw-r--r-- 1 terrence mkgroup-l-d 1675 Mar 14 10:02 id_rsa
> -rw-r--r-- 1 terrence mkgroup-l-d  396 Mar 14 10:02 id_rsa.pub
> -rw-r--r-- 1 terrence mkgroup-l-d  733 Mar 13 12:29 known_hosts
                        ^^^^^^^^^^^

Here's the reason - you don't have a valid /etc/passwd and /etc/group file
installed yet, so cygwin does not know what Windows ACL to create.  See
http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup for details.
> $ chmod -v 600 id_rsa
> mode of `id_rsa' changed to 0600 (rw-------)
> 
> terrence@perl2 ~/.ssh
> $ ls -l id_rsa
> -rw-r--r-- 1 terrence mkgroup-l-d 1675 Mar 14 10:02 id_rsa

Also, you might be using a different filesystem than NTFS, although
following these directions, and attaching 'cygcheck -svr' output as a text
attachment, would have let us know for sure:
> Problem reports:       http://cygwin.com/problems.html

In which case, http://cygwin.com/faq/faq-nochunks.html#faq.using.chmod

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEJCjn84KuGfSFAYARAuRYAJ9tlyiYuk+z4Eyh+7gUCpMNUuD27wCgrLnd
10x9dEfULqkIa2T7NtvaRW8=
=nWYk
-----END PGP SIGNATURE-----

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

