delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/29/09:01:07

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
Date: Mon, 29 Jul 2002 09:03:02 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: profile - mkpasswd, mkgroup
In-reply-to: <NCEBJJFMCAOKNNABBFIMMECOCEAA.john.r.morrison@ntlworld.com>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20020729130302.GA2244@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <NCEBJJFMCAOKNNABBFIMMECOCEAA DOT john DOT r DOT morrison AT ntlworld DOT com>

John,

On Sun, Jul 28, 2002 at 12:47:47PM +0100, John Morrison wrote:
> if $USERDOMAIN == `hostname` ; then
> 	# running locally
> 	/bin/mkgroup -l > /etc/group
> 	/bin/mkpasswd -l > /etc/passwd
> else
> 	# running as part of a domain
> 	/bin/mkgroup -d > /etc/group
> 	/bin/mkpasswd -d > /etc/passwd
> fi

I caution against blind use of the -d option above.  In large domain
environments, the mkgroup and mkpasswd commands could take hours to
complete!  We use something like the following procedure:

    mkpasswd -l >/etc/passwd
    mkpasswd -d -u $USERNAME >>/etc/passwd

    mkgroup -l >/etc/group
    # add needed domain groups (e.g., "Domain Users") to /etc/group

Unfortunately, I have *not* figured out how to automate the domain
groups step.

Jason

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