delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/11/19:36:51

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:content-type:mime-version:subject:from
:in-reply-to:date:cc:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=DFNjmd+DS3sfRPPTITH1KCGjFTAJ
WVrjKnarcSQ8hhEuq+XFtsXruPudYeF6jHcN7A/njcxpmDjro2qm+1RGb0OKQB6r
aUd4m8OHu2BuXGJpucJ+gSuhzi8QR2t1/ZpWazFJmBHQAvhxOz2c/c64MVxLtuTK
UtrV3Jl6uft0GXo=
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:content-type:mime-version:subject:from
:in-reply-to:date:cc:content-transfer-encoding:message-id
:references:to; s=default; bh=nUuxWSBGc1WSUaB4NBHueU3x7O8=; b=on
ekxfSVrlYEunT1aj5ZtXx3GDfNWVeJ6EozImFY+gIVnZO5DpzFyfXkQ8w8LaZzIJ
CpvvznCqANYvqjf+RNq3dYHYsp6A4n8aTWBS0zLptmg7R2kQfUgbOVOjkXSx14Cf
JMGM52dh/o4AiGhcqcl0CbSCGyMcrZj0lsZqNelv4=
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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: nschwmtas02p.mx.bigpond.com
X-Authority-Analysis: v=2.0 cv=F6HVh9dN c=1 sm=1 a=WCuVU9jzkKB/BW3wQvsG9Q==:17 a=kj9zAlcOel0A:10 a=1IlZJK9HAAAA:8 a=w_pzkKWiAAAA:8 a=LPtIqWvPtpt-zkly75MA:9 a=CjuIK1q_8ugA:10 a=buB1NfXUTBUA:10 a=IfQ-iFkkCvMA:10 a=WCuVU9jzkKB/BW3wQvsG9Q==:117
Mime-Version: 1.0 (1.0)
Subject: Re: Non-privileged use can't logon
From: Max Rockliff <max DOT rockliff AT bigpond DOT com>
In-Reply-To: <mdq2kl$ske$1@ger.gmane.org>
Date: Thu, 12 Mar 2015 07:36:25 +0800
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-Id: <61A9EC39-76EF-459C-8302-BEBA8B69AFD2@bigpond.com>
References: <003601d05be4$d2574470$7705cd50$@rockliff AT bigpond DOT com> <20150311111729 DOT GW5732 AT calimero DOT vinschen DOT de> <004e01d05bf1$2897d730$79c78590$@rockliff AT bigpond DOT com> <20150311120705 DOT GX5732 AT calimero DOT vinschen DOT de> <3290.69729564271$1426077647 AT news DOT gmane DOT org> <mdq2kl$ske$1 AT ger DOT gmane DOT org>
To: Daniel <daniel AT boland DOT nl>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2BNakRl030082

Hi Daniel

Thanks for that info. Maybe you're right. I gave to admit it's very weird to start with but I'll give it a go and let you know the outcome.

Regards
Max

> On 12 Mar 2015, at 2:44 am, Daniel <daniel AT boland DOT nl> wrote:
> 
> Hi Max,
> 
> Max Rockliff wrote:
>> Hey Corinna,
>> You're a magician.  It seems to have fixed the problem, or at least provided an effective workaround.  Here's a transcript (kinda)
>> 1.  Downloaded the new cygwin1-20150311.dll.xz  (PS. Kudos for using a yyyymmdd format in the name - I always do, but so many don't
>> 2.  Copied the xz file to my privileged user account home folder and Unxz'ed it.
>> 3.  Used Windows to copy the file cygwin1-20150311.dll to the C:\cygwin\bin folder
>> 4.  Stopped the SSHD service
>> 5.  Renamed the old cygwin1.dll to cygwin1.dll.old
>> 6.  Renamed cygwin1-20150311.dll to cygwin1.dll
>> 7.  Started the SSHD service
>> 8.  Started the terminal
>> 9.  Executed ssh st AT localhost and it logged on successfully no errors.
>>    Max AT Max-PC /bin
>>    $ ssh st AT localhost
>>    st AT localhost's password:
>>    Last login: Wed Mar 11 20:32:00 2015 from ::1
>>    st AT Max-PC ~
>>    $
>> 10.  And, as we like to say in Australia - Sweet!
> 
> I noticed that you are initially logged on as a user, named "Max" on a host, named "Max-PC".
> 
> I teach kids Linux using Cygwin and many of them, being gamers, name their computers after themselves, so they can be recognized on a network.
> 
> Having seen this over and over on their laptops, I can now say with 100% certainty that this causes the "/" and "/etc" folders to be installed with group-writable permissions.
> 
> Normally I wouldn't bother, but I make them compile Sendmail as part of a series of lessons. Sendmail doesn't like group-writable folders and refuses to send mail.
> 
> This problem occurs on Win7, Win8, and Win8.1 with the following username/hostname combinations: "Jony AT Jony", "Kjell AT Kjell-PC". The way we solve this is:
> 
> chgrp Users / /etc
> chmod g-w / /etc
> 
> Chmod alone doesn't work. We first have to change the group owner of the folders for chmod to be effective.
> 
> Maybe this phenomenon is unrelated to your sshd problem, but when I saw your user/host combination I felt the need to share this with you and the group.
> 
> Cheers,
> Daniel
> 
> 
> --
> 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
> 

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