Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > -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/