X-Recipient: archive-cygwin@delorie.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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=TZr24lyKoxDi4tj432Y7NRJQ4kcBzbRuIe5wBL4Qp+w
	kPStks28b6HlQjJqy1kk08szdnPvpOLl0H5txI4uFD7UClrn3UW5yIHgu43gEF7J
	A6t2wkA4OzPifXUUj9q8YQVwUf4F2cskaj7mC9DDUC8SRNfnhzftbQKdb1p3Wtyg
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=t9xXtWxQVEknfLA1pj6ibNA9MgI=; b=OGMsa32/RuKpMzcxL
	xTOtf51vsAq/tyTWGHJWaYxUjE8/aAG9M/oDHYabgOkavl4c5/hQaKIKDiDTWA65
	7PVW7jC6PoGrZeQO/YWb8ExN0qtNEpxb96uGf/pjiFIRQBpJcti8EgjuZgJNV5HZ
	VtpYCGqVPFlMRqd9rZEV/VQ/KM=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock04.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54A1819B.9090204@cornell.edu>
Date: Mon, 29 Dec 2014 11:30:19 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: SSHd configuration problems (System error 1376)
References: <1418434328946-113637.post@n5.nabble.com> <548C3162.6040500@cornell.edu> <5499711C.6060500@nokia.com> <54998980.4080801@cornell.edu> <54A10DBF.6010507@nokia.com> <54A1517B.4080802@cornell.edu> <54A1600F.7060700@nokia.com>
In-Reply-To: <54A1600F.7060700@nokia.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 12/29/2014 9:07 AM, Ilya Dogolazky wrote:
> Hi Ken!
> 
> I followed your advise:
> 1) Reinstalled windows again
> 2) Started setup_x86-64.exe from cygwin web site
> 3) Changed two things in the package list:
>   a) Changed version of package cygwin to 1.7.34.003
>   b) Marked package "ssh" to be installed
> 4) After installation started terminal (icon right click -> run as admin)
> 5) Typed "ssh-host-config -y"
> 6) Copied the output and attached to this e-mail
> 
> The same problem as before:
>    System error 1376 has occurred.
>    The specified local group does not exist.
>    Adding user 'cyg_server' to local group 'root' failed!
> 
> :-(
> 
> By the way, very first message is quite funny: "it seems your account does not 
> have these privileges". According to windows UI my account (the only one on this 
> fresh installed machine) is an administrative one.

> $ ssh-host-config -y
> 
> *** Warning: Running this script typically requires administrator privileges!
> *** Warning: However, it seems your account does not have these privileges.
> *** Warning: Here's the list of groups in your user token:
> 
>     None
>     root
>     Users

This output comes from the following code, starting at line 619:

# Make sure the user is running in an administrative context
admin=$(/usr/bin/id -G | /usr/bin/grep -Eq '\<544\>' && echo yes || echo no)
if [ "${admin}" != "yes" ]
then
  echo
  csih_warning "Running this script typically requires administrator privileges!"
  csih_warning "However, it seems your account does not have these privileges."
  csih_warning "Here's the list of groups in your user token:"
  echo
  for i in $(/usr/bin/id -G)
  do
    /usr/bin/awk -F: "/[^:]*:[^:]*:$i:/{ print \"    \" \$1; }" /etc/group
  done

If you were really running in an elevated shell, I don't know why 544 didn't show up in the output of "id -G".

Ken

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

