This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mkpasswd Documentation Deficit; Mkpasswd -c Working?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]