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

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
Message-Id: <5.2.0.9.2.20030219141749.022d4870@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Wed, 19 Feb 2003 14:23:17 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Mkpasswd Documentation Deficit; Mkpasswd -c Working?
Mime-Version: 1.0

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.

The "--help" option does include it, however:

% mkpasswd --help
Usage: mkpasswd [OPTION]... [domain]

This program prints a /etc/passwd file to stdout

Options:
    -l,--local              print local user accounts
    -c,--current            print current account, if a domain account
    -d,--domain             print domain accounts (from current domain
                            if no domain specified)
    -o,--id-offset offset   change the default offset (10000) added to uids
                            in domain accounts.
    -g,--local-groups       print local group information too
                            if no domain specified
    -m,--no-mount           don't use mount points for home dir
    -s,--no-sids            don't print SIDs in GCOS field
                            (this affects ntsec)
    -p,--path-to-home path  use specified path instead of user account home dir
    -u,--username username  only return information for the specified user
    -h,--help               displays this message
    -v,--version            version information and exit

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.


Randy 


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