delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/18/17:56:59

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: <009f01c25f5e$8276bf20$0100a8c0@wdg.uk.ibm.com>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Craig Emery" <craig DOT emery AT 3glab DOT com>,
"Cygwin Mailing List" <cygwin AT cygwin DOT com>
References: <3D88F49E DOT 8090801 AT 3glab DOT com>
Subject: Re: Migrating users from NT to Cygwin?
Date: Wed, 18 Sep 2002 22:58:19 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Craig Emery wrote:
> Dear All,
>
> after installing cygwin all the NT users that existed before running setup.exe
have been migrated into my /etc/passwd file and I
> can run bash --login as them.
>
> I wish for an NT user that I've since created to have the same ability.
>
> How do I migrate this newly created NT user over to cygwin / /etc/passwd?

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

This program prints a /etc/passwd file to stdout

Options:
   -l,--local              print local user accounts
   -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 on NT/W2K.

Most common usage is: $ mkpasswd -l > /etc/passwd

Max.


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