delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/06/07/13:47:18

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=iSure+zOERnBwBSZrG+0HSqIR8zCxunnhY0A5gLHXMnobjJ47kMBw
QRi2/SBHgIidAMp5p39GRQNWnpb9YjdsKBsaNt6/GIk32cOwjBhXLBZ/P5lJVqsK
N8r8n71F+O5ZKA6aAvFC7EWQfVXk9PUbqYvX3YFQHvNrHlnNzN1My4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=0V/Cx65UTnmChwj228hI1csDG78=; b=NQEtSu9CSscY/63BqUmTqPDXLpgi
8qquPP/moTBGyDDlDAd4uoznyw/0hSutcmcIRl+ugudC4gxxtozzOUG7pnKsWYCZ
ihLnSA7XlJpha3EwzePkpfWpfBz5E9ad4v4h9DZyAmEf7facf5uFb4xA3x+KzdRn
Ap2zxvtHZZFbve8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_COUK,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2
X-HELO: nm20-vm3.bullet.mail.ir2.yahoo.com
Date: Sun, 7 Jun 2015 17:46:53 +0000 (UTC)
From: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>
Reply-To: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <2110086719.10597039.1433699213769.JavaMail.yahoo@mail.yahoo.com>
Subject: can't change a file's permissions + some ssh
MIME-Version: 1.0
X-IsSubscribed: yes

after some fiddling with ssh.. removing the service, removing keys, re-running ssh-host-config, I got this error 

harvey AT samsung350 ~ 
$ tail /var/log/sshd.log 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @ 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
Permissions 0670 for '/etc/ssh_host_ed25519_key' are too open. 
It is required that your private key files are NOT accessible by others. 
This private key will be ignored. 
bad permissions: ignore key: /etc/ssh_host_ed25519_key 
Could not load host key: /etc/ssh_host_ed25519_key 
Disabling protocol version 2. Could not load host key 
sshd: no hostkeys available -- exiting.


So I tried changing the file's permissions but I can't seem to change them

harvey AT samsung350 ~ 
$ ls -l /etc/ssh_host_ed25519_key 
-rw-rwx---+ 1 cyg_server root 411 Jun  7 17:23 /etc/ssh_host_ed25519_key 

harvey AT samsung350 ~ 
$ chmod 600 /etc/ssh_* 

harvey AT samsung350 ~ 
$ ls -l /etc/ssh_host_ed25519_key 
-rw-rwx---+ 1 cyg_server root 411 Jun  7 17:23 /etc/ssh_host_ed25519_key 

harvey AT samsung350 ~ 
$ 



I can run 
$ echo asdf>c:\fffdfs   So I do have administrative permissions.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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