X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47F23916.5020608@lists.cichon.com>
Date: Tue, 01 Apr 2008 15:31:02 +0200
From: Public Mailing Lists <lists@lists.cichon.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.13) Gecko/20060417
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: ssh: issue with file permissions on Samba network shares
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Hi guys,

I got a Linux home directory. On Windows, this directory imported as 
Windows share, and I mount it under Cygwin. This way, I can use all my 
Linux settings dot-files, and I don't see the Windows path name mess 
that much.

Ssh (OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007) on Cygwin refuses to 
read my private key from the .ssh directory. It complains like this:

> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Permissions 0644 for '/home/xxxxxxx/.ssh/id_rsa' are too open.
> It is recommended that your private key files are NOT accessible by 
> others.
> This private key will be ignored.
> bad permissions: ignore key: /home/xxxxxxxx/.ssh/id_rsa
> xxxxxxxx@xxxxxxx.xxx's password:

and then, it asks me for a password. That's quite inconvenient, as I 
intend to run lots of commands from a shell script on another host using 
ssh.

It's nice of ssh to care so much about my file permissions. However, in 
this environment with Windows and Cygwin, I don't have that much control 
over my file permissions, do I?

Has anybody else experienced this phenomenon? What is the most elegant 
(or recommended) way of dealing with this situation?

TIA

Cheers,
Gordon



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

