X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sat, 5 May 2012 10:55:56 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: OpenSSH using root for the .ssh directory? Message-ID: <20120505085556.GB2428@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4FA4B94F DOT 4090307 AT samsung DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FA4B94F.4090307@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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 On May 5 09:23, Fedin Pavel wrote: > 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. 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: If you run mkpasswd with the -c option to generate an entry for the current user, and if $HOME is set at the time, then mkpasswd misses to print the value of $HOME, and the generated passwd entry keeps empty. I fixed that in CVS for now, but I'm wondering if that doesn't qualify for a new Cygwin release... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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