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: Sun, 28 Jul 2002 19:42:47 -0400 From: Christopher Faylor 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/