delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/28/07:47:54

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
From: "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com>
To: "Cygwin" <cygwin AT cygwin DOT com>
Subject: profile - mkpasswd, mkgroup
Date: Sun, 28 Jul 2002 12:47:47 +0100
Message-ID: <NCEBJJFMCAOKNNABBFIMMECOCEAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

Hi all.

One of the first things I almost always have to do upon
installing cygwin on a machine at work is generate the
groups and passwords for the domain.

What I'm proposing to do is remove the creation of the
batch program from setup (with, I think Rob's blessing :)
and add it to the profile package.

Then, after changing it to a shell script (are there
any issues with this?) doing something along the lines
of (peudo-code):

----------------------------------------

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

----------------------------------------

Only problem I can see is I don't know whether
the variable USERDOMAIN is NT specific.  There
may be other issues also (I can only test on
w2k).

Thoughts?

J.

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