delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/19/17:34:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 19 Feb 2003 17:32:12 -0500
From: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Mkpasswd Documentation Deficit; Mkpasswd -c Working?
Message-ID: <20030219223212.GA350675@worldnet>
References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030219141749 DOT 022d4870 AT pop3 DOT cris DOT com>
Mime-Version: 1.0
In-Reply-To: <5.2.0.9.2.20030219141749.022d4870@pop3.cris.com>
User-Agent: Mutt/1.4i

On Wed, Feb 19, 2003 at 02:23:17PM -0800, Randall R Schulz wrote:
> Hi,
> 
> Pierre's recent suggestion to invoke "mkpasswd" with the "-c" option 
> sent me to the documentation to learn what that option does. Neither 
> "info" nor "man" document the "-c" option.

Right, it's a very recent feature that has not made its way into the doc.
It was designed for eventual use in a setup postinstall script, to reliably 
(no PDC access) build /etc/passwd for domain users. 
It now looks like it has another use. 

> % mkpasswd --help
<snip>
>    -c,--current            print current account, if a domain account
> One of `-l', `-d' or `-g' must be given.
> 
> I don't know if it's a bug or not, but "-c" does not change the output 
> of "mkpasswd -l" on my system (I'm not in a domain, so -d isn't an 
> option). The "-c" option is not valid alone.

Those are features, see help lines above.

While on this topic, the man page says "mkpasswd does not work on the
Win9x series (Windows 95, 98, and Me)", which is not accurate.
Using mkpasswd is a safe way to build /etc/passwd, and on Win95 the
-u switch can be used to create entries with the specified name.

Pierre


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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