delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/29/11:31:03

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: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 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=-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 AT cornell DOT 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 AT cygwin DOT com
Subject: Re: SSHd configuration problems (System error 1376)
References: <1418434328946-113637 DOT post AT n5 DOT nabble DOT com> <548C3162 DOT 6040500 AT cornell DOT edu> <5499711C DOT 6060500 AT nokia DOT com> <54998980 DOT 4080801 AT cornell DOT edu> <54A10DBF DOT 6010507 AT nokia DOT com> <54A1517B DOT 4080802 AT cornell DOT edu> <54A1600F DOT 7060700 AT nokia DOT com>
In-Reply-To: <54A1600F.7060700@nokia.com>
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

- Raw text -


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