X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MK,TW_PW,TW_TP,TW_WU X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4FA4FDDC.1030100@towo.net> References: <4FA4B94F DOT 4090307 AT samsung DOT com> <4FA4FDDC DOT 1030100 AT towo DOT net> Date: Sat, 5 May 2012 07:31:04 -0400 Message-ID: Subject: Re: OpenSSH using root for the .ssh directory? From: Chris Sutcliffe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q45BVYlU020341 On 5 May 2012 01:23, Fedin Pavel wrote: >  Look at your /etc/passwd. Here, on my machine,home directory is empty for > my username. Perhaps mkpasswd's bug. You can fix it by manually setting the > right path in /etc/passwd. That fixed it, thanks! On 5 May 2012 04:55, Corinna Vinschen wrote: > Indeed, that's a bug in mkpasswd I introduced in December.  I don't know > what I was thinking when I made the change, but it results in the > following misbehaviour: > > I fixed that in CVS for now, but I'm wondering if that doesn't qualify > for a new Cygwin release... As per Thomas' response, anything that depends on getpwuid() would be affected and for only new installs (which would explain why I hadn't seen this before). So as to not confuse new users, it may be worth the effort to produce a new release. On 5 May 2012 06:15, Thomas Wolff wrote: > It's a bug in openssh (I think) that it does not use $HOME but retrieves the > used home directory via getpwuid() which looks into /etc/passwd. > I reported this upstream a while ago but since on Linux systems fewer people > have a $HOME setting different from /etc/passwd they don't seem to care. > Also I got the hint that it uses getpwuid in some situations and $HOME in > others which can be seen in the code but yet remains obscure. Agreed, it seems odd that ssh is ignoring $HOME. Thank you, Chris -- Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d -- 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