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: Mon, 29 Jul 2002 09:03:02 -0400 From: Jason Tishler Subject: Re: profile - mkpasswd, mkgroup In-reply-to: To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20020729130302.GA2244@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: 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/