delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/05/18:07:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 5 Dec 2000 15:00:39 -0800 (PST)
From: Mo DeJong <mdejong AT cygnus DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with ssh-keygen.exe.
In-Reply-To: <3A297D93.E742D3DE@redhat.com>
Message-ID: <Pine.SOL.3.91.1001205145615.26082A-100000@cse.cygnus.com>
MIME-Version: 1.0

On Sat, 2 Dec 2000, Corinna Vinschen wrote:

> Mo DeJong wrote:
> > Ok, but I still do not understand why the /etc/passwd file would
> > be created without a home directory, and why does it find
> > /bin/sh as the home dir instead of ""?
> > 
> > What program is run to generate this /etc/passwd file?
> > It seems like this problem needs to be fixed there.
> 
> The program is `mkpasswd' and it's in the winsup/utils subdirectory.
> The home directory _is_ written to /etc/passwd if a home directory
> is stored in the NT user database. Otherwise it remains empty.
> 
> The /bin/sh effect... I don't know. Never saw that before. What
> about debugging that problem?		

I ran "mkpasswd > /etc/passwd" and that fixed the problem,
turns out it was just a typo in the user entry that
was cauing it.

Does anyone else think that "" is a strange default home
dir to assign in the event no NT home dir has been set?
I would think that "/home/$USER" would be a much
better fallback, why don't we add that to mkpasswd?

Mo DeJong
Red Hat Inc

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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