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=ejhn7WC4yTqAXVGMbPEMU4gMekSJQ1Cb7zmEVy7A/CD aBkX0Lst4t4dsZZhVKwZgvph/vx6rRB1+gIbHaUD+JOYfCUsRyBkUl76pKjAGEQs PI6QAkJz3Qj3y1aJe2kHMUDFKUBckgLyhsFx4pj6gePRMqT1/a9yi953+BwszerA = 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=dvN82Jc5DNa1VMoZ53zv0OUVUSc=; b=rx7104RJck7YQJcHM aIyu9GZhfSh7dANtECZVWUOc0yzYnujbatrCO3TiQ5MwEt0DpM2l0j8yoqoEgBCW AayFm3uQf7dinTRcHAdM0EPgd9sWxAmHo1XCoX9qcZjtHeoRTUkhsBkLiqHzbtar Qmw88nNDCPN91UKPHOBDHaW4PU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.6 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,GARBLED_BODY,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: limerock04.mail.cornell.edu X-CornellRouted: This message has been Routed already. Message-ID: <54998980.4080801@cornell.edu> Date: Tue, 23 Dec 2014 10:25:52 -0500 From: Ken Brown 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> In-Reply-To: <5499711C.6060500@nokia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Note-from-DJ: This may be spam On 12/23/2014 8:41 AM, Ilya Dogolazky wrote: > Hi Ken ! > > 12/13/2014 02:30 PM, ext Ken Brown пишет: > >> admingroup=$(/usr/bin/mkgroup -l | /usr/bin/awk -F: '{if ( $2 == >> "S-1-5-32-544" ) print $1;}') > >> On my system this yields "Administrators". Apparently it yields "root" >> on your system. Any idea why? > > I have the same error message as PolarStorm: > "Adding user 'cyg_server' to local group 'root' failed!" > > But when I execute the mkgroup+awk (as above) command I receive "Administrators" > > Even more: the output of the "mkgroup -l" command doesn't contain the string > "root" at all. So I believe the statement "group is obtained in line ..." can't > be quite true. The script finds the word "root" from somewhere, but surely not > from that mkgroup+awk command. > > PS I'm trying to run sshd on a fresh installed "Windows 8.1 Enterprise N" system > with fresh installed cygwin64. csih has been updated. The group is now obtained as follows, in lines 2969-2970: admingroup=$(/usr/bin/getent group S-1-5-32-544) admingroup="${admingroup%%:*}" This still yields "Administrators" on my system. I'm using the test release of cygwin in case that's relevant. 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