delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/11/20:21:31

Message-Id: <200810120021.m9C0LQ6A003947@delorie.com>
X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Herb Maeder <maeder-cygml AT maeder DOT org>
In-reply-to: Herb Maeder <maeder-cygml@maeder.org> 's message of Sat, 11 Oct 2008 07:29:12 PDT.
Subject: Re: "mkpasswd -c" from a cmd shell outputs wrong gid (cygwin-1.7)
Date: Sat, 11 Oct 2008 17:20:38 -0700
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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
Note-from-DJ: This may be spam

On 11 Oct 2008 07:29:12 PDT, Herb Maeder wrote:
> The "mkpasswd -c" command produces the wrong gid for the current user
> under the following set of circumstances:
> 
>    * it is invoked from a cmd.exe shell
>    * there are no running cygwin bash shells
>    * output is redirected to cygwin's /etc/passwd file (with the permissions
>      that setup.exe sets on it)
> 
> For example, the following should show the problem (from cmd.exe shell,
> directly after completing an initial cygwin install with setup-1.7.exe):
> 
>    cd c:\cygwin-1.7\bin
>    .\mkpasswd -l -c > ..\etc\passwd
> 
> For my case I see that it outputs "10544" as the gid, instead of the
> expected "10513" (Domain Users).

Oops, I forgot to mention that I noticed this on a Vista machine.  I have
not been able to verify if happens on XP or not.

Herb.

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