delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/27/04:22:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RW,TW_WX,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4E58A906.8040508@gmail.com>
Date: Sat, 27 Aug 2011 10:21:26 +0200
From: Marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin/vmware_template/ssh verison issue with 1.126
References: <0087189622C8E440B0568619CF342A0B29AA16 AT x2008mb2 DOT infoblox DOT com>
In-Reply-To: <0087189622C8E440B0568619CF342A0B29AA16@x2008mb2.infoblox.com>
X-IsSubscribed: yes
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

On 8/26/2011 6:14 PM, Drew Patten wrote:
>
> I have a 2003 template with a working Cygwin sshd install.  I deploy vms via  script from that template and when they are brought online the Cygwin prompt is now '#' instead of a '$' and I cannot start sshd.   Both Cygwin sshd service are configured with the cyg_server account to start them.  And as far as I can tell the only difference is one machine was deployed via script from the working template and I don't know why the permissions are changing for Cygwin when deploying these servers.   For all intensive purposed the permissions are identical.
>
>  From working 2003 machine (one I provision templates from):
>
> frtest AT w2k3r2s32 ~
> $ cygcheck -V
> cygcheck version 1.126
> System Checker for Cygwin
> Copyright (C) 1998 - 2008 Red Hat, Inc.
> Compiled on Mar 28 2011

that is cygcheck version. For cygwin version "uname -a "


>
> frtest AT w2k3r2s32 ~
> $ ls -ld /var/empty/
> drwxr-xr-x+ 1 cyg_server root 0 Mar  9 14:39 /var/empty/
>
> frtest AT w2k3r2s32 ~
> $ ls -ld /etc/ssh*
> -rw-r--r-- 1 cyg_server None 1555 Mar  9 14:39 /etc/ssh_config
> -rw------- 1 cyg_server None  668 Mar  9 14:39 /etc/ssh_host_dsa_key
> -rw-r--r-- 1 cyg_server None  613 Mar  9 14:39 /etc/ssh_host_dsa_key.pub
> -rw------- 1 cyg_server None  988 Mar  9 14:39 /etc/ssh_host_key
> -rw-r--r-- 1 cyg_server None  653 Mar  9 14:39 /etc/ssh_host_key.pub
> -rw------- 1 cyg_server None 1675 Mar  9 14:39 /etc/ssh_host_rsa_key
> -rw-r--r-- 1 cyg_server None  405 Mar  9 14:39 /etc/ssh_host_rsa_key.pub
> -rw-r--r-- 1 cyg_server None 3153 Mar  9 14:39 /etc/sshd_config
>
> frtest AT w2k3r2s32 ~
> $ ls -ld /var/log/sshd.log
> -rw-rw-r-- 1 Administrator None 0 Mar  9 14:41 /var/log/sshd.log
>
> frtest AT w2k3r2s32 ~
> $ net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service was started successfully.
>
> And from a non-working machine deployed from that template:
>
>
> frtest AT w3r232-77 ~
> # cygcheck -V
> cygcheck version 1.126
> System Checker for Cygwin
> Copyright (C) 1998 - 2008 Red Hat, Inc.
> Compiled on Mar 28 2011
>
> frtest AT w3r232-77 ~
> # ls -ld /var/empty
> drwxr-xr-x+ 1 cyg_server root 0 Mar  9 14:39 /var/empty

the "+", at the end of permissions flags, means that there
are additional permissions due to ACL

Try forcing
chmod 755 /var/empty

>
> frtest AT w3r232-77 ~
> # ls -ld /etc/ssh*
> -rw-r--r-- 1 cyg_server None 1555 Mar  9 14:39 /etc/ssh_config
> -rw------- 1 cyg_server None  668 Mar  9 14:39 /etc/ssh_host_dsa_key
> -rw-r--r-- 1 cyg_server None  613 Mar  9 14:39 /etc/ssh_host_dsa_key.pub
> -rw------- 1 cyg_server None  988 Mar  9 14:39 /etc/ssh_host_key
> -rw-r--r-- 1 cyg_server None  653 Mar  9 14:39 /etc/ssh_host_key.pub
> -rw------- 1 cyg_server None 1675 Mar  9 14:39 /etc/ssh_host_rsa_key
> -rw-r--r-- 1 cyg_server None  405 Mar  9 14:39 /etc/ssh_host_rsa_key.pub
> -rw-r--r-- 1 cyg_server None 3153 Mar  9 14:39 /etc/sshd_config
>
> frtest AT w3r232-77 ~
> # ls -ld /var/log/sshd.log
> -rw-rw-r-- 1 Administrator None 67 Aug 25 07:26 /var/log/sshd.log
>
> frtest AT w3r232-77 ~
> # net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service could not be started.
>
> The service did not report an error.
>
> More help is available by typing NET HELPMSG 3534.
>
>
> frtest AT w3r232-77 ~
> # cat /var/log/sshd.log
> /var/empty must be owned by root and not group or world-writable.
> /var/empty must be owned by root and not group or world-writable.

have you configured ssh demon with "sshd_config" ?

this is always a good start :
> Problem reports:       http://cygwin.com/problems.html

Regards
Marco

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