This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chmod not working after setting ntsec in CYGWIN environment variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]