diff options
author | Warren Young <warren@etr-usa.com> | 2015-02-25 01:09:38 +0000 |
---|---|---|
committer | Warren Young <warren@etr-usa.com> | 2015-02-25 01:09:38 +0000 |
commit | 2fdce9d61843def08fa938ca7b7a94c9a2ad55be (patch) | |
tree | f636e057ed93f3ab81a12d642100987afad60477 /winsup/doc/faq-using.xml | |
parent | ad8d295e7c02a289d11b7ab3e7c7e36af934adde (diff) | |
download | cygnal-2fdce9d61843def08fa938ca7b7a94c9a2ad55be.tar.gz cygnal-2fdce9d61843def08fa938ca7b7a94c9a2ad55be.tar.bz2 cygnal-2fdce9d61843def08fa938ca7b7a94c9a2ad55be.zip |
Added chgrp None ~/.ssh/* hack to FAQ item 4.40
Diffstat (limited to 'winsup/doc/faq-using.xml')
-rw-r--r-- | winsup/doc/faq-using.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/winsup/doc/faq-using.xml b/winsup/doc/faq-using.xml index 14bc9ffd8..9351bc850 100644 --- a/winsup/doc/faq-using.xml +++ b/winsup/doc/faq-using.xml @@ -1125,6 +1125,26 @@ be not too open:</para> -rw------- 1 user group 1766 Aug 26 2013 .ssh/id_rsa </screen> +<para>If the second <command>ls</command> command still gives you +<computeroutput>-rw-rw----</computeroutput> permissions after running +the above commands, it is proably because the file's primary group +is your user's personal group:</para> + +<screen> + $ ls -l .ssh/id_rsa + -rw-rw---- 1 Fred Fred 1766 Aug 26 2013 .ssh/id_rsa +</screen> + +<para>Since the Windows security system treats groups and users as +much the same thing, a change to the user or group permissions on +such a file reflects the change to both user and group. In effect, +mode 0600 becomes mode 0660. Because we are saying we want these +files to be readable only by our user, the fix for this is easy:</para> + +<screen> + $ chgrp None ~/.ssh/* +</screen> + <para>For more information on <command>setfacl</command>, see <ulink url="https://cygwin.com/cygwin-ug-net/using-utils.html#setfacl"/></para> </answer></qandaentry> |