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 From: "John Morrison" To: "Cygwin" Subject: profile - mkpasswd, mkgroup Date: Sun, 28 Jul 2002 12:47:47 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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/