This is the mail archive of the
mailing list for the Cygwin project.
Re: Mkpasswd Documentation Deficit; Mkpasswd -c Working?
- From: "Pierre A. Humblet" <pierre dot humblet at ieee dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 19 Feb 2003 17:32:12 -0500
- Subject: Re: Mkpasswd Documentation Deficit; Mkpasswd -c Working?
- References: <firstname.lastname@example.org>
On Wed, Feb 19, 2003 at 02:23:17PM -0800, Randall R Schulz wrote:
> 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
> -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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html