delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/24/12:14:34

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 AT byu DOT net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, metaperl DOT cygwin AT gmail DOT com
Subject: Re: chmod not working after setting ntsec in CYGWIN environment variable
References: <82a397f60603240905t5eb6a726o83da83b60200907e AT mail DOT gmail DOT com>
In-Reply-To: <82a397f60603240905t5eb6a726o83da83b60200907e@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

-----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 AT 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 AT 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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019