X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_HELO_PASS,TW_PW,TW_TP,TW_WU X-Spam-Check-By: sourceware.org Message-ID: <4FA4FDDC.1030100@towo.net> Date: Sat, 05 May 2012 12:15:56 +0200 From: Thomas Wolff User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: OpenSSH using root for the .ssh directory? References: <4FA4B94F DOT 4090307 AT samsung DOT com> In-Reply-To: <4FA4B94F.4090307@samsung.com> X-TagToolbar-Keys: D20120505121555744 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Am 05.05.2012 07:23, schrieb Fedin Pavel: > On 05.05.2012 7:06, Chris Sutcliffe wrote: >> I'm at a loss as to why it's looking in the root directory. > > 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. > 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. Maybe a cygwin-specific patch could fix it. Thomas -- 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