delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/11/15:07:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050711145238.09a3ce78@pop.prospeed.net>
Date: Mon, 11 Jul 2005 15:07:03 -0400
To: <FischRon DOT external AT infineon DOT com>, <cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: ssh ceased to work after recreation of /etc/passwd
In-Reply-To: <25F7D2213F14794A8767B88203EA2BC9240CA6@mucse201.eu.infineo n.com>
References: <25F7D2213F14794A8767B88203EA2BC9240CA6 AT mucse201 DOT eu DOT infineon DOT com>
Mime-Version: 1.0

At 06:00 AM 7/11/2005, you wrote:
>Due to various problems on my system, I have recreated /etc/group and
>/etc/passwd by
>
>  mkpasswd -l -c >/etc/passwd
>  mkgroup -l -c >/etc/group
>
>Now ssh does not work anymore: I always get the error message
>
>  "You don't exist, go away!"
>
>The error occurs only in Cygwin windows which I opened *after* I had
>recreated
>passwd and group. By comparing what the working and the non-working
>case, I see
>that by recreating /etc/passwd, my uid had changed:
>
># Before recreating /etc/passwd
>$ id
>uid=400(fischron) gid=401(mkpasswd)
>groups=544(Administrators),545(Users),10513(mkgroup_l_d),401(mkpasswd)
>
># After recreating /etc/passwd
>$ id
>uid=121833(fischron) gid=10513(mkgroup_l_d)
>groups=544(Administrators),545(Users),10513(mkgroup_l_d)
>
>I guess that the change in uid causes ssh to not to recognize me
>anymore.
>
>What's the best way to deal with this situation? Do I have to recreate
>id_rsa
>and id_rsa.pub (and redistribute my public key to all sites I need
>access to)?


The above error occurs in ssh-keygen.c when getpwuid(getuid) fails.  It 
appears Cygwin still thinks of you as uid 400.  Just try stopping all 
Cygwin shells and services and then restarting (via cygwin.bat).  You'll
probably find that you need to change the ownership of files in your home
directory (at least) to enable public key authentication again.




--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019