delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/05/21:12:27

X-Spam-Check-By: sourceware.org
Message-ID: <4484D667.6090200@cygwin.com>
Date: Mon, 05 Jun 2006 21:12:07 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Warning to use mkpasswd
References: <b4376ea40606051754nf366bb8ta25cd70cf1d61a3b AT mail DOT gmail DOT com>
In-Reply-To: <b4376ea40606051754nf366bb8ta25cd70cf1d61a3b@mail.gmail.com>
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

Mister Fred Ma wrote:
> Using an administrator account, I installed cygwin & sshd for all
> users on Windows XP.  The administrator account is local to the
> machine, while my nonadministrator account is a domain power user
> account.  When I launch a cygwin bash shell as administrator, things
> are fine.  When I launch it as nonadministrator, I get the message
> 
>   Your group is currently "mkpasswd".  This indicates that
>   the /etc/passwd (and possibly /etc/group) files should be rebuilt.
>   See the man pages for mkpasswd and mkgroup then, for example, run
>   mkpasswd -l [-d] > /etc/passwd
>   mkgroup  -l [-d] > /etc/group
>   Note that the -d switch is necessary for domain users.
> 
> Here is what I did to create /etc/passwd and /etc/group.
> 
> As administrator, I did
> 
>   mkpasswd -l >| /etc/passwd
>   mkgroup -l >| /etc/group
> 
> As nonadministrator, I then did
> 
>   mkpasswd -d | ssh AdminAccount AT localhost "cat >> /etc/passwd"
>   mkgroup -d | ssh AdminAccount AT localhost "cat >> /etc/group"
> 
> As an indication of proper functionality, I noted that I can
> successfully log in using
> 
>   ssh AdminAccount AT localhost
>   ssh nonAdminAccount AT localhost
> 
> Is there anything further I can do to avoid the warning message
> at the start of this posting?  As a possible clue, I noticed that
> when I log onto Windows as nonAdministrator and start cygwin bash,
> my home diretory ~ is
> 
>   /c/Documents and Settings/NonAdminAccount
> 
> Here, c:\ is mounted as /c.  When I ssh into
> nonAdminAccount AT localhost, however, ~ becomes /home/NonAdminAccount,
> which is c:\cygwin\home\NonAdminAccount.


'ssh' uses the information in your '/etc/passwd' file to determine your
home directory.  You can use the '-h' flag to mkpasswd to set this as
you desire, if the default is not what you want.


> Fred
> ----------------------------------------------------------------------
>     cygcheck -cvs output, as queried from NonAdminAccount
> ----------------------------------------------------------------------

Please don't append this information,

-- 
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