delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/28/19:42:38

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: Sun, 28 Jul 2002 19:42:47 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: profile - mkpasswd, mkgroup
Message-ID: <20020728234247.GC19054@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <NCEBJJFMCAOKNNABBFIMMECOCEAA DOT john DOT r DOT morrison AT ntlworld DOT com>
Mime-Version: 1.0
In-Reply-To: <NCEBJJFMCAOKNNABBFIMMECOCEAA.john.r.morrison@ntlworld.com>
User-Agent: Mutt/1.3.23.1i

On Sun, Jul 28, 2002 at 12:47:47PM +0100, John Morrison wrote:
>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?

I'm not against the idea but I don't really see what it has to do with a
packaged called "profile".

(Which IMO should be renamed to something else, anyway shell-startup,
maybe?)

cgf

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